Skip to end of metadata
Go to start of metadata

Demonstrates using Require and Widget elements to create Titanium proxy properties.

App folder location

Icon

alloy/test/apps/advanced/proxy_property_requires

For example, as shown below, your main Alloy application can define a <Window/> element that uses a <Require/> element to include an external file that defines the Window element's leftNavButton and rightNavButton views. 

app/views/index.xmml
app/views/window.xml

Similarly, you can use a <Widget/> element to add TableViewSection and TableViewRow objects to a TableView, as shown below.

app/views/index.xml
app/views/com.foo.widget/section.xml

Note that a <Widget/> element is equivalent to a <Require/> element with its type attribute set to "widget". For example, the following lines are equivalent:

See also

 

 

  • No labels