Global Loading Indicator
- Published: 09 Apr 2024 Updated: 04 May 2024
provide a loading indicator for long running operations
Why?
Certain operations in Filament may experience prolonged loading times, for example when applying filters to a table. The following code snippet introduces a renderhook to the footer, coupled with an Alpine listener to display a loading message.
Ensure to set the timeout to a sufficiently high value to prevent the message from appearing unnecessarily for small requests.
Related Tricks:
A starting point for testing filamentPHP with tenant aware resources.
Usability: Knowing whether or not the record was saved.
how to make actions sticky in tables when you have a lot of columns
how to use an action as a headerAction or as a table row action without code duplication