使用通用按钮上传存档

时间:2015-09-02 18:31:49

标签: javascript extjs extjs4

我有那个按钮,我需要打开上传对话框,同样在'filefield',但我不想模拟点击,我想真的从我的按钮打开对话框,有办法吗?

{
            xtype: 'panel',
            cls: 'sharedev-floatingbutton sharedev-overflow--visible sharedev-background--none',
            autoShow: true,
            floating: true,
            shadow: false,
            padding: '16 24',

        layout: {
            type: 'vbox',
            align: 'center'
        },

        items: [
            {
                xtype: 'container',
                hidden: true,
                cls: 'sharedev-floatingbutton-contexts sharedev-overflow--visible',
                name: 'actions',
                items: [],
            }, {
                xtype: 'sharedev-floatingbutton-action',
                name: 'fab',
                margin: 8,
                cls: 'large',
                iconCls: 'icon-menu sharedev-white',
                scope: this,
                handler: this.onFabClick
            }
        ]
    }

0 个答案:

没有答案