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

string|array getSelectedId( [boolean as_array] );
as_arraybooleanspecifies whether the result should always be returned as an array.
The default value is false
string|arraythe single item id or an array of ids


//single select mode
var id = list.getSelectedId(); // id = someid
//multiselect mode
var id = list.getSelectedId(); // id = [someid1, someid2, someid3]

Related samples

See also
Back to top
If you have not checked yet, be sure to visit site of our main product Webix web ui framework and page of html5 context menu product.