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