# ViewTemplate
Template that represents a view subcomponent of an ItemTemplate.
NOTE
This is an abstract type. Any object of this structure can be used where this type is used.
# Overview
See Titanium.UI.ListItem for examples of using an item template.
# Properties
# childTemplates
childTemplates :Array<ViewTemplate>
Contains an array of subview templates to be added (in order) as children to this view.
# events
events :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
properties :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