Our pure JavaScript Scheduler component


Post by nikko.joson »

I want to add items to the scheduler column context menu (where the show current timeline menu shows) but I don't know if my property is wrong or the items.

I already implemented contextMenuFeature for the resource grid, but the same implementation does not work using scheduleMenuFeature and scheduleContextMenuFeature. Maybe im using the wrong property but im curretly using the same items config like in my contextMenuFeature

scheduleContextMenuFeature={{
    headerItems: [
        {
            text : 'Item 1',
            checked: true,
            onItem() { 
                console.log("test")
            }
        },
    ],
}}

Post by pmiklashevich »

Please read the upgrade guide to learn how context menu features was refactored in 4.0 version: https://www.bryntum.com/docs/scheduler/#Scheduler/guides/upgrades/4.0.0.md#context-menu

Please read the guide to learn how to customize the context menus: https://www.bryntum.com/docs/scheduler/#Scheduler/guides/customization/contextmenu.md#customizing-the-menu-items

Please check out the docs of https://www.bryntum.com/docs/scheduler/#Scheduler/feature/TimeAxisHeaderMenu

const scheduler = new Scheduler({
    features : {
        timeAxisHeaderMenu : {
            items : {
                extraItem : {
                    text : 'Extra',
                    icon : 'b-fa b-fa-fw b-fa-flag',
                    onItem() {
                        ...
                    }
                }
            }
        }
    }
});

In React it is called TimeAxisHeaderMenuFeature

Pavlo Miklashevych
Sr. Frontend Developer


Post by nikko.joson »

Ok, I will upgrade scheduler first, thank you pmiklashevich


Post Reply