Best way to set a dynamic button on a table builder
Created 7 years ago by edsterI want to have a button that says deactivate or activate on a table builder depending on the value of one of columns in that row.
how would you handle this? I can only get the config to set for all rows, not have a button show only for that row.
There is also a standard edit
button for all rows as well.
Thanks!
ryanthompson
—
7 years ago
Create a handler under the table directory called XxxxxxTableButtons.php. Then use setButtons on your builder like so:
Then i have this code: <?php namespace Pixney\CampaignsModule\Campaign\Table;