Wijmo UI for the Web
findIndexByLabel Method
Indicates the specified item's label that used to search.
Allows the user to find the index of first matched list item by item's label.
Syntax
Javascript (Usage) 
$(function () {
    var returnsValue; // Type:  number
    // Parameters
    var label; // Type:  string
    
    returnsValue = $(".selector").wijlist("findIndexByLabel", label);
});
Javascript (Specification) 
function findIndexByLabel( 
   label : string
) : number;

Parameters

label
Indicates the specified item's label that used to search.

Return Value

the index of first matched list item.
Remarks
If there is no matched list item, it will return -1.
Browser Compatibility
7
5
5

See Also

Reference

wijlist type
wijlist jQuery Widget

 

 


© 2013 All Rights Reserved.

Send comments on this topic.