Skip to main content

click-menu-item

Description

Fires when the user clicks on the item of the menu

Usage

"click-menu-item": ({
id: string | number,
type: "task" | "user" | "toolbar",
action: string,
params?: any
}) => void;

Parameters

The callback of the click-menu-item event can take an object with the following parameters:

  • id - (required) the id of a task
  • type - (required) the type of a menu
  • action - (required) the ID of a clicked menu item
  • params - (optional) additional data of the clicked menu item