support icon indicating copy to clipboard operation
support copied to clipboard

`contextMenuTriggerEvent: 'click'` does not work for calendar

Open ghulamghousdev opened this issue 1 year ago • 1 comments

Set contextMenuTriggerEvent: 'click' on basic calendar example and right click on empty space in calendar.

https://github.com/bryntum/support/assets/52177956/571f0932-a3a6-4342-94b2-c4685e71f24f

ghulamghousdev avatar May 14 '24 09:05 ghulamghousdev

Calendar's SchedulerInterface.js needs this:

eventNameSplitter = /(click|touch|mouse|pointer|key|context|dbl)(.*)/,

Then

features : {
    scheduleMenu : {
            triggerEvent : 'click'
    }
}

Will work. But the docs in ContextMenuBase#config-triggerEvent become invalid at the Calendar level. The docs for triggerEvent will have to be overridden in the Calendar's ScheduleMenu.js and EventMenu.js (Both of which have ContextMenuBase as their base class) to illustrate the above, that it's a config on the feature itself.

ExtAnimal avatar May 14 '24 10:05 ExtAnimal