I know how to create radio button in sencha, but i want to know " how to design radio button like below "
Asked
Active
Viewed 1,438 times
1
-
With CSS. Also those radio buttons would be a bit small for a touch device. – Titouan de Bailleul Mar 13 '13 at 08:24
-
why not use a picker instead of radio buttons? As @TDeBailleul said, 4 radio button won't fit correctly if device width is less. – SachinGutte Mar 13 '13 at 11:24
-
It's an android tablet application – Viswa Mar 13 '13 at 11:50
-
That's not what I meant. I was more thinking about the size of the tappable area: http://stackoverflow.com/questions/1928991/minimum-sensible-button-size-on-iphone – Titouan de Bailleul Mar 13 '13 at 12:21
1 Answers
1
This is what i did, almost i got it.
Ext.create('Ext.form.Panel', {
fullscreen: true,
layout: 'hbox',
defaults: {
labelWidth: '50%',
labelAlign: 'right'
},
items: [
{
xtype: 'radiofield',
name : 'color',
value: 'red',
label: 'Red',
checked: true
},
{
xtype: 'radiofield',
name : 'color',
value: 'green',
label: 'Green'
},
{
xtype: 'radiofield',
name : 'color',
value: 'blue',
label: 'Blue'
}
]
});

Viswa
- 3,211
- 5
- 34
- 65