Assigns the template.
nullobj.setTemplate(name, template, [index1, index2, ...]);
name (string) - template name
template (object or function) - template object
optional index1, index2, ... (string) - template indices
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);
getTemplate(), defineTemplate() methods