setIsHovered(value);
value. Determines the display mode of the list string. If True value is assigned, the list string is highlighted in the same way when cursor is over it. By default this property is set to False.
The setIsHovered method indicates that the mouse is hovered over specified list line.
To execute the example, create a list that consists of three items as shown on the ListItem Constructor page. Create the button on pressing which the setIsHovered method is invoked:
<button onclick="listitem.setIsHovered(true)">IsHovered</button>
After executing the example on pressing the button the first element of the list is highlighted in the same way as rows with the cursor is on them.
See also: