d

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore.

15 St Margarets, NY 10033
(+381) 11 123 4567
ouroffice@aware.com

 

KMF

Filament Tables TALL Stack Component

The Filament Table Builder is a TALL stack table component. You can use this table component as a standalone package, and it’s also included with the Admin Panel.

Using the package’s HasTable interface and InteractsWithTable trait, you can quickly build a table backed by an Eloquent query that you define:

1namespace AppHttpLivewire;

2 

3use AppModelsPost;

4use FilamentTables;

5use IlluminateContractsViewView;

6use IlluminateDatabaseEloquentBuilder;

7use LivewireComponent;

8 

9class ListPosts extends Component implements TablesContractsHasTable

10{

11 use TablesConcernsInteractsWithTable;

12 

13 protected function getTableQuery(): Builder

14 {

15 return Post::query();

16 }

17 

18 public function render(): View

19 {

20 return view('list-posts');

21 }

22}

Beyond the basics, this package supports features that’ll make implementing an interactive table with Livewire a cinch:

  • Customizable pagination
  • Record searching via Laravel Scout
  • Clickable rows
  • Empty state
  • Store table state in the query string
  • Table column types (text column, image column, boolean column, etc.)
  • Table filters
  • Table actions
  • Bulk actions

If you’d like to learn more about using the Filament Tables package with the TALL stack, check out the Table Builder documentation to get started!

Credit: Source link

Previous Next
Close
Test Caption
Test Description goes like this