# ListDataItem

Represents displayed item data.

Availability
3.1.0
3.1.0
9.2.0
Extends
Object

NOTE

This is an abstract type. Any object of this structure can be used where this type is used.

# Overview

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.

# Properties

# properties

Availability
3.1.0
3.1.0
9.2.0
properties :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

Availability
3.1.0
3.1.0
9.2.0
template :String | Number

Template ID configured with the templates property or LIST_ITEM_TEMPLATE_DEFAULT.

On iOS, you can specify one of the following pre-defined templates: LIST_ITEM_TEMPLATE_CONTACTS, LIST_ITEM_TEMPLATE_SETTINGS or LIST_ITEM_TEMPLATE_SUBTITLE.

Default: If the ListView's `defaultItemTemplate` property is not set, then <Titanium.UI.LIST_ITEM_TEMPLATE_DEFAULT> is used.