View Full Version : ext4 combo box templating

2 Feb 2012, 1:48 PM
I want to embed an Ext button inside an XTemplate, but my trial and error attempts have all failed. Does anybody know a way to do this.

Also, I need to template-ize the input field of a combo box. I have been able to put a template into the combo boxes drop-down list, via listConfig, but I have not been able to put a template into the input field. All the other combobox "tpl" type configs have not worked.


2 Feb 2012, 1:56 PM
You won't be able to do a template into the input field but do you want an Ext button or a regular button? If you want a regular button then it is simple to add the input tag into the template. Ext button is more difficult but basically use renderTo to render that button into a particular element.

2 Feb 2012, 2:47 PM
If you want to put an Ext button in an XTemplate you could use CTemplate: