:: Home >>

getTemplate

Returns the template.

Syntax

var template = obj.getTemplate(name, [index1, index2, ...]);

Parameters

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

Returns

template object

Example

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

var template = obj.getTemplate("cell", 2, 3);

is the same as

var template = obj.getCellTemplate(2, 3);

See also

setTemplate(), 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