DataTable column start not visible
-
Hi, there is any way to start a column “unchecked” on columnPicker?
-
Currently no, but will make it possible soon.
-
I will try do for here, if it works I will send a PR ; )
Thanks @rstoenescu
-
I believe what few changes in “vue-components/data-table/plugins/column-selection/column-selection.js” and “vue-components/data-table/DataTable.vue” will solve it, but I need of a property in columns[field] schema to reproduce the behavior. Can I add the property “visible” to “field”?
-
Maybe will be better a property be called “hidden” to keep the default behavior what is haves today.
-
Yes, a “hidden” prop to the columns would be better. The problem is that it’s not quite ok to touch user supplied prop content (like setting hidden to false when user selects a column to be visible again). This needs a careful design. The “hidden” prop should be taken into consideration at
created()
Vue step and then disregarded going forward. -
@rstoenescu Yep, I agree! Thanks again for feedback ; )
-
This would be a nice feature from my pov - fwiw : ) - thanks for the high quality work so far.
-
Cant solve the problem yet! anyone can help me Thanks
-
This is a v0.15 feature, already implemented