Selects item(s) in the list by item index/indices or value(s).
Syntax
$(function () {
var returnsValue; // Type: any
// Parameters
var indices; // Type: undefined
var triggerSelected; // Type: bool
var byIndex; // Type: bool
returnsValue = $(".selector").wijlist("selectItems", indices, triggerSelected, byIndex);
});
function selectItems(
: undefined,
: bool,
: bool
) : any;
Parameters
- indices
- the indices of the items.
- triggerSelected
- Whether to trigger selected event of list.
- byIndex
- Indicates the indices parameter is indices or values of items.
If true, it's used as the index/indices of the item(s) to get.
If false, it's used as the value/values of the item(s) to get.
See Also