Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents
minLevel1
maxLevel7

Overview

...

The event menu is a dropdown that appears when the user right-clicks on an event in the scheduling component. The menu can be customized with custom actions and icons, allowing users to easily perform actions related to the event.

...

Info

For an example see: event menu

Implementation

...

To create an event menu, begin by enabling the feature under the "features" tab. Once enabled, you can add one or more menu items.

...

On click action

Due to certain limitations in the pluggable widget API, we are unable to send the event object as a parameter to the "on click" action defined here. As a workaround, the event can be retrieved from the event ID in the scheduler context.

...

Code Block
[EventId = $SchedulerContext/EventId]

Icon class

If an icon class is supplied it will be added to the HTML like so:

...

You can use regular Mendix glyphicons in the icon class, but you can also utilize the Font Awesome 4 library that comes bundled with the scheduler. However, it's important to read up on how to use it properly in:1.5.2. Icons - Fontawesome 4

Enabled

This expression will allow you to dynamically enable or disable event menu items. Disabled items will not be show in the menu.