LookAtMeNow
LookAtMeNow

Reputation: 261

Extjs4 - How to move lable and value in special position

I have a panel like http://jsfiddle.net/7kKVc/

enter image description here

I try to move displayfield like below

enter image description here

I try hideLabel: true, but that's wrong :(

How to make that thanks

Upvotes: 0

Views: 45

Answers (1)

Evan Trimboli
Evan Trimboli

Reputation: 30082

Try this:

var filterPanel = Ext.create('Ext.panel.Panel', {
    bodyPadding: 5,  // Don't want content to crunch against the borders
    width: 300,
    title: 'Filters',
    items: [{
        xtype: 'datefield',
        fieldLabel: 'Start date'
    }, {
        hideEmptyLabel: false,
        xtype: 'displayfield',
        value: 'Limit: my value'
    }],
    renderTo: Ext.getBody()
});

Upvotes: 1

Related Questions