ListBoxProps

Represents the props of the KendoReact ListBox component.

className?

string

Sets a class of the Tooltip animation container.

data

Array<any>

Set the data of the ListBox.

draggable?

boolean

Makes the items of the ListBox draggable. The items are draggable by default.

item?

React.ComponentType<any>

Defines the component that will be rendered for each item of the data collection.

onDragLeave?

(event: ListBoxDragLeaveEvent) => void

Fires when a dragged element or text selection leaves the ListBox element.

onDragOver?

(event: ListBoxDragEvent) => void

Fires when an the user drags over an item from the ListBox. The event contains information for the item that is dragged over.

onDragStart?

(event: ListBoxDragEvent) => void

Fires when an the user start to drag an item from the ListBox. The event contains information for the item that is being dragged.

onDrop?

(event: ListBoxDragEvent) => void

Fires when an the user drops an item. The event contains information for the drop target item.

onItemClick?

(event: ListBoxItemClickEvent) => void

Fires when an item from the ListBox is clicked. Contains the clicked item.

onKeyDown?

(event: ListBoxKeyDownEvent) => void

Fires on keydown over the ListBox list items. It can be use to add keyboard extra keyboard navigation option.

selectedField?

string

Set the selected field of the ListBox. Based on that value of that field, an item will be selected or not.

style?

CSSProperties

Specifies the styles which are set to the Tooltip animation container.

textField

string

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

toolbar?

null | ComponentType<any>

Renders a toolbar component next to the ListBox.

toolbarPosition?

toolbarPosition | string

Sets the position of the toolbar of the ListBox if one is set. The ListBox may have no toolbar.

  • The possible values are:
  • top
  • bottom
  • left
  • right (Default)
  • none

valueField?

string

The field that be used during form submit. Defaults to the textField if not set.