Hey guys,
we would like to display right-click menus for timeline events.
It seems that at the moment only the rollover context button supports context menus. Eventhough that’s better than nothing, it is not really what we want since it seems to be not very intuitive . In other components it is also possible to open a contextmenu just with a right click for example in a listgrid.
I discovered, that if you open the context button menu once (see picture 1), you suddenly can open the same context menu with a right click on the event (see picture 2).
Picture 01:
Picture 02:
I think, there is something wrong, and there should be the possibility to get a contextMenu if there is a contextmenu defined in the calendarEvent.
This is tested against the latst nighlty SmartClient_v100p_2015-04-24_Pro and the latest chrome version.
Here is the code for reproduction:
Is it somehow possible to directly display the context menu with a right click on the whole calendar event without first clicking on the context button?
Best regards
we would like to display right-click menus for timeline events.
It seems that at the moment only the rollover context button supports context menus. Eventhough that’s better than nothing, it is not really what we want since it seems to be not very intuitive . In other components it is also possible to open a contextmenu just with a right click for example in a listgrid.
I discovered, that if you open the context button menu once (see picture 1), you suddenly can open the same context menu with a right click on the event (see picture 2).
Picture 01:
Picture 02:
I think, there is something wrong, and there should be the possibility to get a contextMenu if there is a contextmenu defined in the calendarEvent.
This is tested against the latst nighlty SmartClient_v100p_2015-04-24_Pro and the latest chrome version.
Here is the code for reproduction:
Code:
isc.Timeline.create({ "ID" : "timeline", "width" : "100%", "height" : "100%", "startDate" : new Date(2015, 2, 1), "endDate" : new Date(2015, 2, 5), "showEventDescriptions" : false, "showEventHeaders" : false, "canEditEvents" : false, "canCreateEvents" : false, "showControlsBar" : false, "getEventCanvasMenuItems" : function(canvas) { return canvas.event.contextMenu.items }, "lanes" : [{ "hierarchyLevel" : 1, "height" : 30, "name" : "1", "title" : "January" } ], "data" : [{ "lane" : "1", "startDate" : new Date(2015, 2, 2, 0, 0), "backgroundColor" : "#00BD02", "endDate" : new Date(2015, 2, 4, 23, 59), "contextMenu" : isc.Menu.create({ items : [ {title: "item1"}, {title: "item2"} ] }), } ]})
Best regards
Comment