Datatable headermenu

Hi team,

is exist a way to save the headermenu state to reload it later plsease ?

https://snippet.webix.com/242e340d

Regards,
Xavier

Hello, @ XavierDP

Since the state of the header menu is the visibility state of the datatable columns and headermenu is just a control that allows you to show and hide columns through the menu. You need to store a pool of datatable hidden columns (table.getState().hidden)
https://docs.webix.com/desktop__datastate_state.html#savingdatatablestate

Please, check the snippet here:
https://snippet.webix.com/uacckwc6
It’s also possible to restore part of the state in case to prevent touching the rest of the parameters

table.setState({ hidden: [ ... ] })

Hi @AlenaLisava

Ok thank you very much