首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >未显示ExtJs FormPanel按钮

未显示ExtJs FormPanel按钮
EN

Stack Overflow用户
提问于 2014-10-01 16:39:58
回答 1查看 217关注 0票数 0

我正试图在我的应用程序中构建一个FormPanel,它由一个字段和两个按钮组成。问题是,当显示文本字段时,视图上没有显示按钮!

这是Login.js视图:

代码语言:javascript
复制
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'
            }]
    }]
}
});

有谁知道吗?提前感谢

EN

回答 1

Stack Overflow用户

发布于 2014-10-01 19:05:52

容器没有按钮配置。您必须在formpanel对象中定义按钮配置。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/26137374

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档