A list section is a container within a list view used to organize list items.
Use the Titanium.UI.createListSection method or <ListSection>
Alloy element to create a ListSection
.
List sections are used to manipulate and organize list items contained within it. For examples of using list sections, see the examples in Titanium.UI.ListView and Titanium.UI.ListItem.
ListSection is supported by Alloy 1.2.0 and later.
HeaderView and FooterView are supported on Alloy 1.3.0 and later.
<Alloy>
<Window fullscreen="true">
<ListView>
<ListSection>
<!-- Sets ListSection's headerView property -->
<HeaderView>
<View backgroundColor="#DDD" height="Ti.UI.SIZE">
<Label>Fruits</Label>
</View>>
</HeaderView>
<ListItem title="Apple" />
<ListItem title="Orange" />
<ListItem title="Pear" />
<!-- Sets ListSection's footerView property -->
<FooterView>
<View backgroundColor="#DDD" height="Ti.UI.SIZE">
<Label>3 items</Label>
</View>
</FooterView>
</ListSection>
</ListView>
</Window>
</Alloy>
The name of the API that this proxy corresponds to.
The name of the API that this proxy corresponds to.
The value of this property is the fully qualified name of the API. For example, Button
returns Ti.UI.Button
.
Title of this section header.
Title of this section header.
Using this property and headerView
together is not supported. Use one or the other.
View to use for this section header.
View to use for this section header.
Using this property and headerTitle
together is not supported. Use one or the other.
In Alloy you can specify this property with a <HeaderView>
child element of a <ListSection>
element (see Examples).
The Window or TabGroup whose Activity lifecycle should be triggered on the proxy.
The Window or TabGroup whose Activity lifecycle should be triggered on the proxy.
If this property is set to a Window or TabGroup, then the corresponding Activity lifecycle event callbacks will also be called on the proxy. Proxies that require the activity lifecycle will need this property set to the appropriate containing Window or TabGroup.
Appends the data entries to the end of the list section.
On iOS, the list item(s) can be inserted with an animation by specifying the animation
parameter.
List items to add.
Animation properties. (iOS only.)
Applies the properties to the proxy.
Properties are supplied as a dictionary. Each key-value pair in the object is applied to the proxy such that myproxy[key] = value.
A dictionary of properties to apply.
Removes count entries from the list section at the specified index.
On iOS, the list item(s) can be removed with an animation by specifying the animation
parameter.
Index of where to remove items.
Number of items to remove.
Animation properties. (iOS only.)
Returns the item entry from the list view at the specified index.
Index of where to retrieve an item.
Inserts data entries to the list section at the specified index.
On iOS, the list item(s) can be inserted with an animation by specifying the animation
parameter.
Index of where to insert the items.
List items to insert.
Animation properties. (iOS only.)
Removes count entries from the list section at the specified index, then inserts data entries to the list section at the same index.
On iOS, the list item(s) can be replaced with an animation by specifying the animation
parameter.
Index of where to remove then insert items.
Number of list items to remove.
List items to insert.
Animation properties. (iOS only.)
Sets the value of the headerTitle property.
New value for the property.
Sets the value of the headerView property.
New value for the property.
Sets the data entries in the list section.
On iOS, the list item(s) can be inserted with an animation by specifying the animation
parameter.
List items to set.
Animation properties. (iOS only.)
Sets the value of the lifecycleContainer property.
New value for the property.
Updates an item at the specified index.
On iOS, the list item can be updated with an animation by specifying the animation
parameter.
Index of where to update the item.
List item to update.
Animation properties. (iOS only.)