findByText(value)
Class: List.
Description:
Finds first item whose text matches the argument. If item is {text: "First Item", value: "item1"}, it should be found by passing value "First Item".
Parameters:
| Name | Type | Description |
|---|---|---|
|
|
string |
Search by this text |
Returns:
Returns an index of the first found list items or -1 if no item was found.
Type: number
