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 image5 Replies
Section::make(...)->schema(...)->columnSpanFull()
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;
}
ah. ok. It needs to be on the Filter and Filter doesn't have columnSpanFull() so:
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')
not sure what you are asking, but yes you can use
columnSpan('full')
instead of columnSpanFull()