getSelectedId of ui.menu, Methods Webix Docs

StartAPI Referenceui.menuMethods

returns the id(s) of the selected item(s)

string|array getSelectedId( [boolean as_array] );

as_array