extjs4 tools 配置项

来源:互联网 发布:淘宝网店手机拍照 编辑:程序博客网 时间:2024/05/16 12:45

</pre><pre name="code" class="javascript">Ext.onReady(function() {    var panel = new Ext.Panel({        renderTo: "hi",        title: "面板的标题",        width: 400,        height: 500,        html: "<h1>面板的主体内容</h1>",        tbar: [{            text: "顶部工具toptoolbar"        },        {            pressed: true,            text: "刷新"        }],        bbar: [{            text: "底部工具bottomtoolbar"        }],        buttons: [{            text: "位于footer底部"        },        {            text: "测试提交"        }],        tools: [{            type: 'close',            handler: function() {}        },        {            type: 'collapse',            handler: function() {}        },        {            type: 'down',            handler: function() {}        },        {            type: 'expand',            handler: function() {}        },        {            type: 'gear',            handler: function() {}        },        {            type: 'help',            handler: function() {}        },        {            type: 'left',            handler: function() {}        },        {            type: 'maximize',            handler: function() {}        },        {            type: 'minimize',            handler: function() {}        },        {            type: 'minus',            handler: function() {}        },        {            type: 'next',            handler: function() {}        },        {            type: 'pin',            handler: function() {}        },        {            type: 'plus',            handler: function() {}        },        {            type: 'prev',            handler: function() {}        },        {            type: 'print',            handler: function() {}        },        {            type: 'refresh',            itemId: "refresh",            hidden: true,            handler: function() {}        },        {            type: 'restore',            handler: function() {}        },        {            type: 'right',            handler: function() {}        },        {            type: 'save',            handler: function() {}        },        {            type: 'toggle',            handler: function() {}        },        {            type: 'unpin',            handler: function() {}        },        {            type: 'up',            handler: function() {}        },        {            type: "search",            handler: function(event, target, owner, tool) {                owner.child('#refresh').show()            }        }]    })});

 





0 0
原创粉丝点击