1

I know how to create radio button in sencha, but i want to know " how to design radio button like below "

enter image description here

SachinGutte
  • 6,947
  • 5
  • 35
  • 58
Viswa
  • 3,211
  • 5
  • 34
  • 65

1 Answers1

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