rappasoft / laravel-livewire-tables

A dynamic table component for Laravel Livewire
https://rappasoft.com/docs/laravel-livewire-tables/v2/introduction
MIT License
1.7k stars 320 forks source link

Update Loading Placeholder - Add Methods #1634

Closed lrljoe closed 4 months ago

lrljoe commented 5 months ago

This fix is to add new methods for controlling the Loading Placeholder content for the table.

This is currently in development, as tests need adjusting.

setLoadingPlaceholderContent

You may use this method to set custom text for the placeholder:

setLoadingPlaceholderContentBlade

You may use this method to set a custom content blade. This will be wrapped in a and element (which can be customised as below).

setLoadingPlaceholderBlade

As an alternative to the setLoadingPlaceholderContentBlade, you may over-ride the default content entirely, in which case you must begin and end your custom blade with a element to avoid DOM issues.

All Submissions:

New Feature Submissions:

  1. [ ] Does your submission pass tests and did you add any new tests needed for your feature?
  2. [X] Did you update all templates (if applicable)?
  3. [X] Did you add the relevant documentation (if applicable)?
  4. [ ] Did you test locally to make sure your feature works as intended?

Changes to Core Features:

stale[bot] commented 4 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.