getSelectedItem

returns selected object

object getSelectedItem(boolean as_array);

Parameters

as_arraybooleanif set, always returns an array of objects

Returns

objectcurrently selected item

Example

var item = list.getSelectedItem();
var ar_selected = list.getSelectedItem(true);

Back to top