indexOf(text)

Class: List.

Description:

Returns and index of an item whose text matches provided text.

Parameters:

Name Type Description

text

string

Text string to find

Returns:

Returns index of a found item or -1.

Type: number