PDA

View Full Version : Image instead of BoxLabel in Radio Group



chetan.nellekeri
30 Aug 2013, 1:22 AM
Hi,
I want to display the image just after the radio button...Jus like below image

45630

Instead of BoxLabel for radiobutton, I want to display image..

evant
30 Aug 2013, 2:31 AM
boxLabel accepts html.

chetan.nellekeri
30 Aug 2013, 2:53 AM
Awesome!! Done...
Below is code..



{
xtype: 'radiogroup',
margin: 10,
width: 272,
fieldLabel: 'Page Orientation',
items: [
{
xtype: 'radiofield',
boxLabel: '<img src="../javascript/image/landscapePage.png" />',
name: 'pageOrientation'
},
{
xtype: 'radiofield',
boxLabel: '<img src="../javascript/image/portraitPage.png" />',
name: 'pageOrientation'
}
]
}