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
8 years ago.

Hi,

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.

HTML
<daypilot

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

Controller
$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.
Stephan

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

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

http://javascript.daypilot.org/daypilot-pro-for-javascript-8-0-sp2/

Let me know if the problem persists.

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