unselect()
unselects a selected Menu item
unselect(id?: string | number): void;
Parameters:
id: string | number
- optional, the id of a Menu item
Example
// unselects all previously selected items
menu.unselect();
// unselects a specified selected item
menu.unselect("align-left");
Related sample: Menu. Select / unselect
Change log:
added in v7.0