Skip to content

Latest commit

 

History

History
 
 

appointment-context-menu

Appointment Context Menu

The scheduler lets you edit appointments by double clicking them, it provides resize handles and lets you drag them to change them, and offers a [x] button to delete them.

In addition to that interactivity, you may want to add a context menu to the appointments to provide shortcuts or other custom features specific to your application (such as assigning resources, or other common actions that your users repeat often).

To use a context menu for the appointments:

  1. Add the desired context menu to the page. Create its items, commands and actions as needed.

  2. Use the appointment template of the scheduler to integrate the context menu with them.

In this sample project we provide a Delete shortcut and a way to toggle a custom field in the appointment model.

Tip: As of 2.27.0 there is a built-in event you can use so you do not have to use templates, you can read more about it here: Scheduler OnItemContextMenu Event