【问题标题】:modal panel in sencha doesnt show up on clicksencha 中的模态面板在点击时不显示
【发布时间】:2013-10-06 16:46:20
【问题描述】:

我想通过单击工具栏中的按钮来显示模式信息窗口。我不知道为什么,但是当我单击按钮时没有任何反应。

这是我的代码:

xtype: 'toolbar',
            docked: 'bottom',
            items: [
                {
                xtype: 'button',
                text: 'Infos anzeigen',
                handler: function(){
                    var panel = new Ext.Panel({
                        modal: true,
                        left: 0,
                        top: 0,
                        width: 220,
                        height: 356,
                        layout: 'fit',
                        html: 'Testing'
                    });
                    panel.show();
                    }
                }]

【问题讨论】:

    标签: extjs touch modal-dialog panel


    【解决方案1】:

    您可能正在寻找Ext.Window

    var win = new Ext.Window({
        modal: true,
        left: 0,
        top: 0,
        width: 220,
        height: 356,
        layout: 'fit',
        html: 'Testing'
    });
    win.show();
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-30
      相关资源
      最近更新 更多