Miguilim
Miguilim
FFilament
Created by Miguilim on 10/8/2024 in #❓┊help
Filtering widget data with HasFiltersForm on view resource page
I'm trying to use the Filtering widget data with HasFiltersForm on view resource page (Infolist). I currently put the use Filament\Pages\Dashboard\Concerns\HasFiltersForm; trait, and put the filtersForm method:
public function filtersForm(Form $form): Form
{
return $form
->schema([
Section::make()
->schema([
DatePicker::make('startDate'),
DatePicker::make('endDate'),
// ...
])
->columns(3),
]);
}
public function filtersForm(Form $form): Form
{
return $form
->schema([
Section::make()
->schema([
DatePicker::make('startDate'),
DatePicker::make('endDate'),
// ...
])
->columns(3),
]);
}
But it doesn't show anything about the filter. How can I make it work in a view resource / Infolist page?
4 replies
FFilament
Created by Miguilim on 8/4/2023 in #❓┊help
Null state for table column
Hello, I have a column in my project that is nullable, I'm trying to make a default display value for it but I'm not finding a way. This is what I'm trying to do:
TextColumn::make('transaction.amount')
->label('Received Amount')
->placeholder('N/A'),
TextColumn::make('transaction.amount')
->label('Received Amount')
->placeholder('N/A'),
7 replies