How to disable toggables on table?
Hi guys, I have multiple resuable columns, but on some tables I want to disable toggability of that table. I know, I can set
$table->searchable(false)
to disable searchbar, but how to disable button for toggling columns on table (not on separate columns)?4 Replies
How are you reusing the columns?
@Trauma Zombie try with ->disabled()
I extract all columns to separete class and method, so I can reuse it and I dont need to duplicate my code.
Maybe
DiagnosisTable::getColumns(toggleable: false)
, and then you can forward it to all the columns?
I'm not sure there is a method on the table directly.