Dynamically defining a table's columns.
Hey there. I have a custom table widget which is linked to a custom field, which allows me to create dynamic tables in forms.. this has been working fine for a while. I wanted to try modifying the table's columns based on the current activetab, this almost works.. except it looks like the table() is rendered with a slightly out of sync $activeTab. Basically, if I click on the tab twice, it updates to the right columns, if not, it stays at the last active tab's columns. This isn't an issue on the ->query method because we can just pass a Closure there.. is there something similar that can done for table columns?
Thanks!
0 Replies