How i can Custom colvis?

How i can Custom colvis?

lazzylazzy Posts: 21Questions: 8Answers: 0

I have a lots of column more than 20, some columns i dont need show all of time, some columns i just hide by defaut (but data for search), some colume i want always show it that means column visibility option i dont need it (reduce my list)

my config is ["copy","colvis"] it works fine but list of colvis it too long
i just want config option colvis for each option 3 option
* hide to option(column's name doesn't show in option list)
* show with option to hide (show column's name and active)
* hide with option to show (show column's name and status is inactive)
{
buttons: [ 'copy', 'excel', 'pdf', 'colvis' ]
colvis: {
0:{name:"Col 1";status:'hide'}
1:{name:"Col 2";status:'essential'}
2:{name:"Col 3";status:'persist'}
}
}
how can i do it?

This discussion has been closed.