dissto
dissto
FFilament
Created by Ava on 11/20/2024 in #❓┊help
Section->headerActions->Select
app instead of src
16 replies
FFilament
Created by Ava on 11/20/2024 in #❓┊help
Section->headerActions->Select
my bad...app folder...I have tested that code inside a plugin 🤓
16 replies
FFilament
Created by Ava on 11/20/2024 in #❓┊help
Section->headerActions->Select
Inside your src folder create a new folder "named" Actions. Create a new file named MySelectAction.php inside that folder. Paste the following code into MySelectAction.php
<?php

namespace App\Actions;

use Filament\Actions\Concerns\HasSelect;
use Filament\Forms\Components\Actions\Action;

class MySelectAction extends Action
{
use HasSelect;

protected function setUp(): void
{
parent::setUp();

$this->view('filament-actions::select-action');
}
}
<?php

namespace App\Actions;

use Filament\Actions\Concerns\HasSelect;
use Filament\Forms\Components\Actions\Action;

class MySelectAction extends Action
{
use HasSelect;

protected function setUp(): void
{
parent::setUp();

$this->view('filament-actions::select-action');
}
}
After that you should be able to use:
Section::make()
->headerActions([
\App\Actions\MySelectAction::make('hi')
->options([
'option1' => 'Option 1',
])
])
Section::make()
->headerActions([
\App\Actions\MySelectAction::make('hi')
->options([
'option1' => 'Option 1',
])
])
16 replies
FFilament
Created by Ava on 11/20/2024 in #❓┊help
Section->headerActions->Select
No description
16 replies
FFilament
Created by Ava on 11/20/2024 in #❓┊help
Section->headerActions->Select
You could create a custom action that extends a Forms\Components\Action, then it would work...
<?php

namespace App\Actions;

use Filament\Actions\Concerns\HasSelect;
use Filament\Forms\Components\Actions\Action;

class MySelectAction extends Action
{
use HasSelect;

protected function setUp(): void
{
parent::setUp();

$this->view('filament-actions::select-action');
}
}
<?php

namespace App\Actions;

use Filament\Actions\Concerns\HasSelect;
use Filament\Forms\Components\Actions\Action;

class MySelectAction extends Action
{
use HasSelect;

protected function setUp(): void
{
parent::setUp();

$this->view('filament-actions::select-action');
}
}
Section::make()
->headerActions([
\App\Actions\MySelectAction::make('hi')
->options([
'option1' => 'Option 1',
])
])
Section::make()
->headerActions([
\App\Actions\MySelectAction::make('hi')
->options([
'option1' => 'Option 1',
])
])
16 replies
FFilament
Created by Ava on 11/20/2024 in #❓┊help
Section->headerActions->Select
Well, looks like the section does not support the SelectAction currently 🤔
16 replies
FFilament
Created by Ava on 11/20/2024 in #❓┊help
Section->headerActions->Select
SelectAction not Select though
16 replies
FFilament
Created by Ava on 11/20/2024 in #❓┊help
Section->headerActions->Select
If you are looking for the SelectAction, yea it appears to be undocumented as of right now...
protected function getHeaderActions(): array
{
return [
Actions\SelectAction::make('test')
->options([
'hi' => 'Hello',
]),
];
}
protected function getHeaderActions(): array
{
return [
Actions\SelectAction::make('test')
->options([
'hi' => 'Hello',
]),
];
}
16 replies
FFilament
Created by gcardinal on 11/10/2024 in #❓┊help
Default button alignment for Repeater action
You could set a default via ServiceProvider I suppose. Something like:
Repeater::configureUsing(function (Repeater $repeater) {
return $repeater
->addActionAlignment(Alignment::Start)
});
Repeater::configureUsing(function (Repeater $repeater) {
return $repeater
->addActionAlignment(Alignment::Start)
});
8 replies
FFilament
Created by ericmp on 11/4/2024 in #❓┊help
How to set tooltip on table header?
yea its good, maybe I can edit my trick 🤓
19 replies
FFilament
Created by ericmp on 11/4/2024 in #❓┊help
How to set tooltip on table header?
Can you try putting ->abbr() at the end as last method?
19 replies
FFilament
Created by ericmp on 11/4/2024 in #❓┊help
How to set tooltip on table header?
This is just how macros work. $this will get bound to the instance you access it on. So $this is the TextColumn in that case. See the collection example from the laravel docs
19 replies
FFilament
Created by Mehmet K. on 10/21/2024 in #❓┊help
My Bulkaction buttons do not fit in the table, can we add scroll?
12 replies
FFilament
Created by TegarJK on 10/18/2024 in #❓┊help
Is this memory usage normal?
No description
11 replies
FFilament
Created by TegarJK on 10/18/2024 in #❓┊help
Is this memory usage normal?
Are you on Windows? If yes, I got similar memory usage 🤓
11 replies
FFilament
Created by SuperUserDo on 10/15/2024 in #❓┊help
Custom Column Clickable - Prevent
If i am not mistaken. You should be able to use a closure and inject in the record:
$table
->recordAction(function (Model $record){
return $record->isFeatured() ? null : 'view';
})
$table
->recordAction(function (Model $record){
return $record->isFeatured() ? null : 'view';
})
6 replies
FFilament
Created by solarmax1984 on 10/15/2024 in #❓┊help
How to turn-off client-side validation
I think if you use the rules method you can avoid the client side validation?
TextInput::make('name')
//->required()
->rules([
'required'
])
TextInput::make('name')
//->required()
->rules([
'required'
])
4 replies
FFilament
Created by KingNii on 10/14/2024 in #❓┊help
Select input not working when searchable is appended
You need to show some code, otherwise its just guessing 🤓
22 replies