niiknow / vue-datatables-net

Vue jQuery DataTables.net wrapper component
https://niiknow.github.io/vue-datatables-net/
MIT License
171 stars 58 forks source link

Field Visibility - toggling columns #68

Open muhzak opened 2 years ago

muhzak commented 2 years ago

Is there an easy way to do this? I change the field visible to on or off based on a check box. But nothing.

noogen commented 2 years ago

This all has to do with datatable.net API and not a function of this component. See documentation here: https://datatables.net/examples/api/show_hide.html

You want to use the API in the documentation above and not the columnDef itself, because datatables.net is a jQuery component and is not reactive like in Vue.