Generic HTML template class. Provides methods for retrieving values from data models and calling nested templates.
action | |
defineModel | Creates necessary methods for a new data model. |
defineProperty | |
definePropertyArray | |
defineTemplate | |
getModel | Returns an instance of the data model with a given name, defined on the template. |
getProperty | |
getTemplate | |
setAction | |
setModel | |
setProperty | |
setTemplate |
Creates necessary methods for a new data model.
object.defineModel(name);
name | String | New data model name. |
Returns an instance of the data model with a given name, defined on the template.
object.getModel(name);
name | String | Name of the data model. |
A data model object.