:: 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.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