Skip to main content

unselect()

unselects a selected Menu item

unselect(id?: Id): void;

Parameters:

id: string | number - optional, the id of a Menu item

Example

// unselects all previously selected itemsmenu.unselect(); // unselects a specified selected itemmenu.unselect("align-left");

Related sample: Menu. Select/Unselect

Change log:

added in v7.0