View Full Version : Checkbox template example

22 Jan 2014, 8:31 AM
I'm using ExtJS 4.1 MVC. In view I created checkboxGroup and in controller I add items (checkboxes) to id dynamically. But I need them to display in special way. I'm thinking about Templates (XTemplates).
Do I need to add tpl to checkboxGroup or to every checkbox item? I have no idea how does it look like. Please, help!
Please write an example template for checkbox

var checkboxes = Ext.getCmp("myCheckboxGroup");
var name = item.get("name");
boxLabel: name,
name: fieldName
// tpl ???