:: Home >>

defineTemplate

Creates get/set methods for the template.

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

No comments yet.
Comments will appear on this page and in the main forum.

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