Wijmo UI for the Web
findIndexByLabel Method
wijmo.list Namespace > wijlist type : 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
$(function () {
    var returnsValue; // Type:  number
    // Parameters
    var label; // Type:  string
    
    returnsValue = $(".selector").wijlist("findIndexByLabel", label);
});
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.
See Also

Reference

wijlist type
wijlist jQuery Widget