:: Documentation >> Reference >>

Active.System.Template

Generic HTML template class. Template is a re-usable HTML fragment aimed to produce markup as part of a larger object (control).

Template can either be a simple element or a complex HTML structure and may include calls to other templates as part of the output.

Templates can access properties of the parent control, so the template output will be different depending on the control's data. Templates can also accept parameters allowing to generate lists or tables of data with the single instance of the template.

Constructor Syntax

var obj = new Active.System.Template;

Class Hierarchy

Parent Classes:
Active.System.Object
Derived Classes:
Active.System.Control
Active.Templates.Status
Active.Templates.Error
Active.Templates.Text
Active.Templates.Image
Active.Templates.Link
Active.Templates.Item
Active.Templates.List
Active.Templates.Box
Active.Templates.Scroll

Public Methods

actionRuns the action.
defineTemplateCreates a link to the new content template.
getActionReturns the action handler.
getModelReturns the data model object.
getPropertyRetrieves the value of the property.
getTemplateReturns the template object.
setActionSets the action handler.
setModelSets the external data model.
setPropertyAssignes the new value to the property.
setTemplateSets the template.