tom hatzer
tom hatzer
FFilament
Created by tom hatzer on 4/27/2024 in #❓┊help
Lazy loading for Select form component options
I think I found a way... (the returned array is the replacement for a method call that I have in my code, to simplify things) Specifying the options using an inline function callback triggers the callback immediately:
->options(fn():array => ['1', '2', '3'])
->options(fn():array => ['1', '2', '3'])
Specifying the options using a regular function definition only triggers the call when the modal is opened and the Select component is shown
->options(function() {
return ['1', '2', '3'];
})
->options(function() {
return ['1', '2', '3'];
})
4 replies
FFilament
Created by tom hatzer on 10/12/2023 in #❓┊help
Remove/customize default button classes
Thanks @Patrick Boivin , that's what I'm doing right now but the problem is resetting all the current/existing classes doesn't work at all times. CSS rules like all: revert/unset/initial cause some strange behaviours if you combine them with your new styling in the same class definition.
4 replies