Used filterslayout and section

->form([ Section::make('Search') ->schema([ DatePicker::make('from') ->label('Start Date')->format('Y-m-d')->reactive(), DatePicker::make('to')->reactive()->label('End Date')->format('Y-m-d') ])->columns(2), ]) Used filterslayout and section.i need to elaborate above section to the end .Any possibilties is having in filament?Kindly advice me how to do ...for your refernce attached image
5 Replies
awcodes
awcodes16mo ago
Section::make(...)->schema(...)->columnSpanFull()
Hemanath
Hemanath16mo ago
I tired already is not coming... protected function getTableFilters(): array { return [ Filter::make('receipt_date') ->form([ Section::make('Search') ->schema([ DatePicker::make('from') ->label('Start Date')->format('Y-m-d')->reactive(), DatePicker::make('to')->reactive()->label('End Date')->format('Y-m-d') ])->columns(2)->columnSpanFull(), ])]; } protected function getTableFiltersLayout(): ?string { return Layout::AboveContent; } protected function getTableFiltersFormColumns(): int { return 2; }
awcodes
awcodes16mo ago
ah. ok. It needs to be on the Filter and Filter doesn't have columnSpanFull() so:
Filter::make('receipt_date')
->form([
Section::make('Search')
->schema([
DatePicker::make('from')
->label('Start Date')->format('Y-m-d')->reactive(),
DatePicker::make('to')->reactive()->label('End Date')->format('Y-m-d')
])->columns(2),
])->columnSpan('full')
Filter::make('receipt_date')
->form([
Section::make('Search')
->schema([
DatePicker::make('from')
->label('Start Date')->format('Y-m-d')->reactive(),
DatePicker::make('to')->reactive()->label('End Date')->format('Y-m-d')
])->columns(2),
])->columnSpan('full')
Hemanath
Hemanath16mo ago
Tired its came thanks for that but to enlarging of start and end date .we can minimize the start and end date as like old....with the use of ->columnSpan('full')
awcodes
awcodes16mo ago
not sure what you are asking, but yes you can use columnSpan('full') instead of columnSpanFull()
Want results from more Discord servers?
Add your server
More Posts