0
votes

How to get following layout in extjs 4.1.3??

form Layout

I want checkbox to attach next to textbox. Any Idea?

1

1 Answers

0
votes

You are looking for a FieldContainer with an hbox layout. See the docs here: http://docs.sencha.com/extjs/4.1.3/#!/api/Ext.form.FieldContainer

{
    xtype: 'fieldcontainer',
    fieldLabel: 'lamp failed',

    layout: 'hbox',
    items: [{
        xtype: 'textfield'
    }, {
        xtype: 'checkbox'
    }]
}