Ext常用Tool

时间:2023-03-09 23:02:00
Ext常用Tool

Ext常用Tool

Ext.onReady(function() {
var mPanel = Ext.create('Ext.panel.Panel', {
title: 'Panel',
width: '100%',
height: 100,
renderTo: Ext.getBody(),
tools: [
{
type: 'close',
handler: function() {//方法处理
}
},
{
type: 'collapse'
},
{
type: 'down'
},
{
type: 'expand'
},
{
type: 'gear'
},
{
type: 'help'
},
{
type: 'left'
},
{
type: 'maximize'
},
{
type: 'minimize'
},
{
type: 'minus'
},
{
type: 'next'
},
{
type: 'pin'
},
{
type: 'plus'
},
{
type: 'prev'
},
{
type: 'print'
},
{
type: 'refresh'
},
{
type: 'restore'
},
{
type: 'right'
},
{
type: 'save'
},
{
type: 'search'
},
{
type: 'toggle'
},
{
type: 'unpin'
},
{
type: 'up'
}
]
});
});