Titanium.UI.ListDataItem
Represents displayed item data.
In addition to the properties defined below, you can define custom key-value pairs, which bind to the child templates of an <ItemTemplate>. The key for these pairs match the bindId of the child view templates and the values are a dictionary of view properties applied to the view components. Any other properties that are not identified by a bindId are permitted but are ignored by the item template.
See Titanium.UI.ListItem for examples of using a list data item.
Since: 3.1.0 · Platforms: android, ipad, iphone, macos
Properties #
properties#
Type: Dictionary<Titanium.UI.ListItem>
Contains key-value pairs of view properties and their values that are applied to the
ListItem.
If there are properties set in the <ItemTemplate> (not the children view templates),
the values set in the list data item override the template's properties.
template#
Type: String, Number
Template ID configured with the Titanium.UI.ListView.templates property or
Titanium.UI.LIST_ITEM_TEMPLATE_DEFAULT.
On iOS, you can specify one of the following pre-defined templates:
Titanium.UI.LIST_ITEM_TEMPLATE_CONTACTS,
Titanium.UI.LIST_ITEM_TEMPLATE_SETTINGS or Titanium.UI.LIST_ITEM_TEMPLATE_SUBTITLE.