New to KendoReactStart a free 30-day trial

ListItemProps

Interface

Represents the props of the ListItem component.

Definition

Package:@progress/kendo-react-dropdowns

Properties

Represents the data item of the list item element.

disabled?

boolean

Indicates the disabled/enabled state of the list item element.

focused

boolean

Indicates the focused state of the list item element.

group?

string

The group that will be rendered.

id?

string

Specifies the id that will be added to the list item element.

index

number

Represents the index of the list item element.

onClick

(index: number, event: MouseEvent​<HTMLLIElement, MouseEvent>) => void

The onClick event handler of the list item element.

Parameters:indexnumbereventMouseEvent​<HTMLLIElement, MouseEvent>

Fires when the list item is about to be rendered. Used to override the default appearance of the list item.

Parameters:liReactElement​<HTMLLIElement, string | JSXElementConstructor​<any>>itemPropsListItemPropsReturns:

ReactNode

selected

boolean

Indicates the selected state of the list item element.

Sets the data item field that represents the item text. If the data contains only primitive values, do not define it.