Custom Bulk Action Select
Hello all!
is there any way I can have the checkbox only to the row which has the device price as shown in the image?
I want bulk action to work only to those rows
18 Replies
Filament
Actions - Table Builder - Filament
The elegant TALL stack table builder for Laravel artisans.
He wants to conditionally show it... The only way I can think atm is really hacky and rendering some JS on the row that finds the closes checkbox and display:none it.
This is trick
I wouldn't define it as a trick as it's ugly as hell haha
sure!
@toeknee_iom now i want to change the logic and make the Transfer selected action only visible if all selected items have device price
is it possible this time?
Hmm why not condition the action instead? Try moving and notify of failed where no price
I saw this🤗
and this automatically hides the checkbox as I wanted!
thank you @toeknee_iom @Leandro Ferreira
Nice! I ditn't know 👌
But think we have still to adjust something because there is still the message saying "select all"!
Me neither 🙏
You can select all, but then I believe it deselects them if the condition isn’t met?
still there is this option which I still want to hide
Ifg you select all what happens
It acts like normal
Sound correct to me, tick all for all applicable and select all for all. if you think it's a bug please create a bug issue on github 🙂