Skip to main content

select()

selects a specified item of Menu

select(id: Id, unselect: boolean): void;

Parameters:

  • id: string | number - the id of a Menu item
  • unselect: boolean - optional, true to unselect previously selected items; otherwise, false; true by default

Example

menu.select("align-left");

Related sample: Menu. Select/Unselect

Change log:

added in v7.0