:: Documentation >>

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

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.

HTML

<div id="{id}"></div>

Comments

Code Placement pterodactyl (1)
Valid values for parameter name in setAction method Rafael Vieira (5)
What are the posobilities for name can we have a listing? (0)

Documentation:

Recent changes:

2.6.4
2.6.3
2.6.2
2.6.1
2.6.1
2.6.0
2.5.0 - 2.5.6
2.5.6
2.5.0 - 2.5.5
2.5.5