Back to Examples
This page includes demos using a two column layout.
This example defines an inline custom view that extends
It tells the view to use a specific layout template (
bindings block then tells the view where to place field elements within the template.
The layout template file
DIV blocks with IDs
The properties are placed into each column as defined by the
This example provides a three-column layout for properties. As in Example #1, the layout template is
provided and the fields are bound to specific
DIV elements within the layout file using the
In this case, we provide the template inline (as a string). We could provide this string as either the
layout.template property or as a property of our choosing under
Here we take the latter path. We define a general purpose view template called
and then reference it from our view's
layout.template property. The Alpaca view compiler discovers this
and reuses the template.