Domanda

I have a formpanel

var form = new Ext.form.FormPanel({
    title: 'Form Layout',

    buttons: [
        {text: 'Save'},
        {text: 'Cancel'}
    ]

});

I want to change the layout of the buttons below, so that they appear one below the other. Can I assign a layout to these buttons or is there another way?

È stato utile?

Soluzione 2

var form = new Ext.form.FormPanel({
title: 'Form Layout',

buttons: [{

    xtype: 'panel', 
    items: [
      {text: 'Save'},
      {text: 'Cancel'}
    ]
 }]

});

this helps, but maybe its not a proper solution till i find a real one. marking for now, will change later when a better one arrives

Altri suggerimenti

Instead of adding as buttons you can go for items into fbar of this form panel , and add each button component here

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top