search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Context menu issues for JavaScript scheduler control in AngularJs app

Asked by Stephan Hoppe
7 years ago.


I am just wondering if I am doing something wrong, since the context menu for my scheduler directive is not working. This is what I am doing.


  • scheduler id="dp" daypilot-config="schedulerConfig" daypilot-events="events"></daypilot-scheduler>

$scope.schedulerConfig = {
contextMenu: new DayPilot.Menu({
items: [
{ text: "Edit", onclick: function () { alert('Edit'); } },
{ text: "Delete", onclick: function () { alert('Delete'); } } ]

The context menu appears when right clicking on an event, but when clicking on the menu item I receive the following errors:

Chrome: TypeError: Illegal invocation
FF: nodeType' getter called on an object that does not implement interface Node.
IE: Invalid calling object

Am I doing something wrong or is the context menu not working in combination with AngularJs?

Thanks for any advice.

Answer posted by Dan Letecky [DayPilot]
7 years ago.

There was a problem with using DayPilot.Menu with AngularJS. It's be fixed in the latest DayPilot Pro for JavaScript release:

Let me know if the problem persists.

This question is more than 3 months old and has been closed. Please create a new question if you have anything to add.