client side Datatable
is it possible to implement client side datatable with table builder? 🤔
6 Replies
can you provide more information? do you mean inside a livewire component? @Punyapal Shah
@Punyapal Shah Yes it's possible. Without filament core, you can use tables, forms, infolist's ant other's with install spesific.
For example for table;
composer require filament/tables:"^3.0-stable" -W
install filament/tables to your project and check https://filamentphp.com/docs/3.x/tables/installation
Be sure
php artisan filament:install --tables
npm install tailwindcss @tailwindcss/forms @tailwindcss/typography postcss autoprefixer --save-dev
and set tailwind config options
I'm working with widgets.
I have 5 widgets one of which I'm using for filters, it dispatch event with the filters.
I have a common function that provides data to all widgets from the cache based on filters.
so the case is I already have the data on the client side and if I use table builder then I have to provide a query and all things work with server call even if I have data already.
Ttherefore I'm looking client side debatable
It’s how filament and livewire works. If you want a different behavior you need to build your own.
+1 to Dennis message, but still want to use filament space, you can use Cache for your query. But it's may cause bug on some features.
Thanks @Dennis Koch,
I was just cross checking if it possible to do so...
thanks for your time