Skip to end of metadata
Go to start of metadata

Demonstrates expressing properties of Titanium objects with Alloy proxy elements.

App Folder Location

You can find this example app in the Alloy repository under samples/apps/ui/proxy_properties. Check the instructions how to run these sample projects.

Many Titanium UI objects and properties can be declared in Alloy as mark-up. These mark-up elements are considered proxies for the underlying Titanium APIs. For example, the views/ios/index.xml view, shown below, uses the following proxies. 

Proxies that represent properties of objects are nested inside the parent element. For example, a <Window/> element's leftNavProperty is represented by a <LeftNavButton/> child element. Proxies can nest multiple levels, as shown with the Toolbar element in the XML view below.

views/ios/index.xml

The views/table.xml view defines a <TableView/> element and various properties of the TableView such as its footerView and headerView, as well as TableViewSection and TableViewRow elements.

views/table.xml

See also

  • No labels