Skip to main content

openMenu()

Description

Opens the menu of a task/project at the specified coordinates

Usage

openMenu({
id: string | number,
type?: "task" | "user" | "project",
coords: { x: number, y: number }
}): void;

Parameters

  • id - (required) the ID of a task/project
  • type - (optional) the type of a menu. There are three types of menu:
    • task (by default) - the task menu
    • user - the user menu
    • project - the project menu
  • coords - (required) an object with the x and y coordinates of the menu:
    • x - (required) the value of the x coordinate
    • y - (required) the value of the y coordinate