簡體   English   中英

ExtJs FormPanel按鈕未顯示

[英]ExtJs FormPanel Buttons not shown

我正在嘗試在應用程序中構建一個由一個字段和兩個按鈕組成的FormPanel。 問題是,雖然顯示了文本字段,但視圖上沒有顯示按鈕!

這是Login.js視圖:

Ext.define('appTrial.view.Login',{
extend: 'Ext.form.Panel',
xtype: 'Login',
alias: 'widget.Login',

config : {
    id : 'LoginId',

    title : 'Welcome',
    resizable : false,
    collapsible : true,
    bodyPadding : '5',
    buttonAlign : 'center',
    border : false,
    trackResetOnLoad : true,

    items : [{
        docked: 'top',
        xtype: 'titlebar',
        title: 'Welcome to My New App!!!'
        },
        {
        xtype: 'container',
        name: 'mainContainer',
        layout: {
            type: 'vbox',
            align: 'center',
            pack: 'center'
        },
        //width : '100%',
            items : [{
                layout: {
                    pack: 'center'
                },
                html :'Associa attivita',
                margin: '80 0 0 0'
            },{
                xtype: 'fieldset',
                items: [{
                    xtype: 'textfield',
                    name: 'codAttivita'
                }]
            }],
            buttons :[{
                text : 'Associa',
                itemId : 'btnAssocia',
                formBind : true,
                ui: 'confirm'
            },{
                text : 'Reset',
                itemId : 'btnReset',
                formBind : true,
                ui: 'decline'
            }]
    }]
}
});

有人有什么主意嗎? 提前致謝

容器沒有按鈕配置。 您必須將按鈕配置定義到formpanel對象中。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM