:: Documentation >>

defineTemplate

Creates get/set methods for the template.

null

Syntax

obj.defineTemplate(name, value);

Parameters

name (string) - template name
value (template object or function) - default template

Example

obj.defineTemplate("cell", new AW.Templates.Text);

Remarks

Calling defineTemplate() creates get/set methods using template name, for example, calling defineTemplate("cell", ...) creates getCellTemplate() and setCellTemplate() methods.

Comments

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