Wijmo UI for the Web
selectItems Method
the indices of the items.
Whether to trigger selected event of list.
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.
Selects item(s) in the list by item index/indices or value(s).
Syntax
Javascript (Usage) 
$(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);
});
Javascript (Specification) 
function selectItems( 
   indices : undefined,
   triggerSelected : bool,
   byIndex : 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.
Browser Compatibility
7
5
5

See Also

Reference

wijlist type
wijlist jQuery Widget

 

 


© 2013 All Rights Reserved.

Send comments on this topic.