PDA

View Full Version : labelSeparator in checkboxgroup



jhudaverdi
12 Nov 2012, 4:39 AM
Hi all,
we want to use labelSeparator in checkboxgroup in ExtJS 4 but we could not use. So, could you inform me please if it is possible or not? Here is what we have tried below:


{
xtype : 'fieldset',
collapsible : false,
title : '',
autoHeight : true,
defaultType : 'textfield',
width : 100,
collapsed : false,
items : [
{
xtype: 'checkboxgroup', hideLabel: true, vertical: true, columns: 1,
items: [
{
boxLabel : 'myLabel',
id : 'myId',
name : 'myId'
labelSeparator : "<img src='img/help.gif' title='"+ 'Help' + "'/>"

}]
}
]
}

Thanks in advance...

sword-it
12 Nov 2012, 5:37 AM
Hi jhudaverdi,


Try this code -



items : [
{
xtype: 'checkboxgroup',
hideLabel: true,
vertical: true,
columns: 1,
items: [
{
boxLabel : 'myLabel<img src="img/help.gif" title="'+ Help +'"/>', id : 'myId',
name : 'myId'
}]
}
]