getSelected()
returns an array of IDs of selected items
getSelected(): (string | number)[];
Returns:
An array of string/number values with IDs of selected items.
Example
menu.getSelected(); // -> ["selected_1", "selected_1.1"]
Change log:
added in v7.0