:: Documentation >> Reference >>

Active.System.Template

Generic HTML template class. Provides methods for retrieving values from data models and calling nested templates.

Method Summary

action
defineModelCreates necessary methods for a new data model.
defineProperty
definePropertyArray
defineTemplate
getModelReturns an instance of the data model with a given name, defined on the template.
getProperty
getTemplate
setAction
setModel
setProperty
setTemplate

Method Details

action

defineModel

Creates necessary methods for a new data model.

Syntax

object.defineModel(name);

Parameters

nameStringNew data model name.

defineProperty

definePropertyArray

defineTemplate

getModel

Returns an instance of the data model with a given name, defined on the template.

Syntax

object.getModel(name);

Parameters

nameStringName of the data model.

Returns

A data model object.

getProperty

getTemplate

setAction

setModel

setProperty

setTemplate