A list of items. The preferred method of populating items in the List is to use ListItem children.

  • Alanhappy
  • Chriscool
  • Ericodd

List Properties

onMore {function ()}
When this callback is provided, it is an indication that more data could be added if the user scrolls to the bottom. When present, a spinner will be added to the bottom and this callback will be called when the user scrolls to reveal the spinner. The expectation is that the the caller will add the next chunk of data at that point.
onSelect {function (selected)}
Function that will be called when the user selects something. When only one item is selected, it returns the zero based index for that item. When multiple items are selected, it returns an array of those item's zero based indexes.
selectable true|false|multiple
Whether rows are selectable. multiple indicates that multiple rows may be selected
selected {number}|[{number}, ...]
The currently selected item(s) using a zero based index.

ListItem Properties

onClick function () {...}
Called when the user clicks on the item. Callers should bind an identifier to the function to distinguish between multiple items. For example onClick={this._onClick.bind(this, id)}

Properties for Box are also available for ListItem.