Our state of the art Gantt chart


Post by beotech »

Hello,
We would like to sort the columns by their text property in alphabetic order in the column picker but keep the defined order in the grid (without have a submenu in the column picker like in groupByTag).
Is this possible?

Thanks in advance


Post by mats »

Something like this should do it:

features: {
    headerMenu: {
        processItems({
            items
        }) {
            const menuItems = items.columnPicker.menu.items;
            menuItems.sort((a, b) => a.text < b.text ? -1 : 1);
        }
    }
},

Post Reply