:: Home >>

setTemplate

Assigns the template.

Syntax

obj.setTemplate(name, template, [index1, index2, ...]);

Parameters

name (string) - template name
template (object or function) - template object
optional index1, index2, ... (string) - template indices

Example

It is possible to assign the template by name or use generated set function -

obj.setTemplate("cell", new AW.Templates.Image, 2, 3);

is the same as

obj.setCellTemplate(new AW.Templates.Image, 2, 3);

See also

getTemplate(), defineTemplate() methods

Comments

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

Documentation:

Recent changes:

2.5.0 - 2.5.2
2.5.2
2.5, 2.5.1
2.5.1
2.5
Release History
2.5
2.0.2
textToValue
textToData