putrafajarh
putrafajarh
FFilament
Created by putrafajarh on 12/14/2024 in #❓┊help
How to remove or disable clear button on DatePicker
I try required, but it not disable
Tables\Filters\Filter::make('date')
->form([
DatePicker::make('date')
->label('Select Date')
->default(today())
->required()
])
->query(function (Builder $query, array $data): Builder {
return $query;
}),
Tables\Filters\Filter::make('date')
->form([
DatePicker::make('date')
->label('Select Date')
->default(today())
->required()
])
->query(function (Builder $query, array $data): Builder {
return $query;
}),
2 replies
FFilament
Created by putrafajarh on 7/7/2024 in #❓┊help
Repeater Toggle others
How to toggle others false, if current is true
return $form
->schema([
Forms\Components\TextInput::make('question')
->required()
->maxLength(255),
Repeater::make('options')
->columnSpanFull()
->relationship('options')
->schema([
TextInput::make('answer')
->required(),
Toggle::make('is_true').
])
]);
return $form
->schema([
Forms\Components\TextInput::make('question')
->required()
->maxLength(255),
Repeater::make('options')
->columnSpanFull()
->relationship('options')
->schema([
TextInput::make('answer')
->required(),
Toggle::make('is_true').
])
]);
3 replies