F
Filament2mo ago
RawaN

direction of the table filter

how to change the direction of the table filter, I can't use use extraAttributes for it, to set it flex what should is do ? looking filter created from , created until look different
No description
Solution:
Have you tried using form layout components?
*Filament\Forms\Components\Grid * should work inside the form() method ```->form([ Filament\Forms\Components\Grid:make([...
Jump to solution
3 Replies
RawaN
RawaNOP2mo ago
Thanks man but if you look the filter have a form
Filter::make('date')
->label(__('date'))
->indicator(__('date'))
->form([
DatePicker::make('created_from')
->label(__('filters.created_from')),
DatePicker::make('created_until')
->label(__('filters.created_until')),
])
Filter::make('date')
->label(__('date'))
->indicator(__('date'))
->form([
DatePicker::make('created_from')
->label(__('filters.created_from')),
DatePicker::make('created_until')
->label(__('filters.created_until')),
])
I wanna set
>extraAttributes([
'class' => ['flex gap-2']])
>extraAttributes([
'class' => ['flex gap-2']])
kinda something for it to next each other
Solution
Wrax
Wrax2mo ago
Have you tried using form layout components?
*Filament\Forms\Components\Grid * should work inside the form() method
->form([ Filament\Forms\Components\Grid:make([

DatePicker::make('created_from')
->label(__('filters.created_from')),

DatePicker::make('created_until')
->label(__('filters.created_until')),
]),
])
->form([ Filament\Forms\Components\Grid:make([

DatePicker::make('created_from')
->label(__('filters.created_from')),

DatePicker::make('created_until')
->label(__('filters.created_until')),
]),
])
Want results from more Discord servers?
Add your server