Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/wix/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在ExtJS6中使窗体工具栏停靠在屏幕底部?_Extjs_Extjs6_Extjs6 Classic - Fatal编程技术网

如何在ExtJS6中使窗体工具栏停靠在屏幕底部?

如何在ExtJS6中使窗体工具栏停靠在屏幕底部?,extjs,extjs6,extjs6-classic,Extjs,Extjs6,Extjs6 Classic,我有一个高形式的面板,我如何使底部工具栏与提交按钮浮动在屏幕底部的固定位置 Ext.define('MyApp.view.myobj.MyPanel', { extend:'Ext.Panel', layout: 'fit', items: [{ xtype: 'form', defaultType: 'textfield', items: [ {fieldLabel: 'Field'},

我有一个高形式的面板,我如何使底部工具栏与提交按钮浮动在屏幕底部的固定位置

Ext.define('MyApp.view.myobj.MyPanel', {
    extend:'Ext.Panel',
    layout: 'fit',
    items: [{
        xtype: 'form',
        defaultType: 'textfield',
        items: [
            {fieldLabel: 'Field'},
            {fieldLabel: 'Field'},
        ],
        dockedItems: [{
            xtype: 'toolbar',
            dock: 'bottom',
            ui: 'footer',
            fixed: true,
            items: [
                {xtype: 'button', text: 'Submit', formBind: true}
            ]
        }]    
    }],

});

我认为您需要父级定义布局(因此它有一个高度)并使用

例如: