Titanium.UI.ViewTemplate
Template that represents a view subcomponent of an <ItemTemplate>.
See Titanium.UI.ListItem for examples of using an item template.
Since: 3.1.0 · Platforms: android, ipad, iphone, macos
Properties #
childTemplates#
Type: Array<ViewTemplate>
Contains an array of subview templates to be added (in order) as children to this view.
events#
Type: Dictionary
Contains key-value pairs of view events and their listeners that are applied to this view component.
Array values are considered as multiple event listeners for that event.
properties#
Type: Dictionary
Contains key-value pairs of view properties and their values that are applied to this view component.
type#
Type: String
View's class name, for example, Ti.UI.Button.
Only the following view classes are supported:
- Titanium.UI.ActivityIndicator
- Titanium.UI.Button
- Titanium.UI.ButtonBar
- Titanium.UI.ImageView
- Titanium.UI.Label
- Titanium.UI.MaskedImage
- Titanium.UI.ProgressBar
- Titanium.UI.Picker
- Titanium.UI.ScrollableView
- Titanium.UI.Slider
- Titanium.UI.Switch
- Titanium.UI.TextArea
- Titanium.UI.TextField
- Titanium.UI.iOS.BlurView
- Titanium.UI.iOS.LivePhotoView
- Titanium.UI.iOS.Stepper
- Titanium.UI.iOS.TabbedBar