DayPilot.Scheduler.contextMenuResource

The contextMenuResource property (DayPilot.Menu) specifies the context menu that will be used for the JavaScript Scheduler component row headers.

Default Value

null

Example

const scheduler = new DayPilot.Scheduler("dp", {
  contextMenuResource: new DayPilot.Menu({
    items: [
        {'text':'Edit', onClick: args => scheduler.rows.edit(args.source) },
        {'text':'-'},
        {'text':'Delete', onClick: args => scheduler.rows.remove(args.source) }
    ],
  }),
  // ...
});
scheduler.init();

Related Properties