tom hatzer
tom hatzer
FFilament
Created by tom hatzer on 4/27/2024 in #❓┊help
Lazy loading for Select form component options
Hey there! Is anyone aware of a way to lazy load the options of a Select form component? Right now I've added the Select dropdown to a table action modal window. The request for the options is done while loading the table which is sub-optimal as it will fire 25 requests (current items per page set to 25) during the initial load and on every page switch. I'd love to load the options for the Select component only right before it's being displayed to the user (eg. after clicking on the action button for the record and when the modal window is shown). Thank you very much! Best wishes Tom
4 replies
FFilament
Created by tom hatzer on 10/12/2023 in #❓┊help
Remove/customize default button classes
Hey everyone! I've got a requirement to make the buttons look more like the corporate design of the client which looks quite different than the buttons currently look in filament. Is there a way to have existing classes for the button component (specified in the $buttonClasses variable inside of vendor/filament/support/resources/views/components/button/index.blade.php) removed? I'd need to have them customized as there are a few classes that I can't remove as the extraAttributes() method only adds/merges classes but doesn't remove them. Thank you very much!
4 replies