select()
selects a specified item of Menu
select(id: string | number, unselect: boolean): void;
Parameters:
id: string | number
- the id of a Menu itemunselect: 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