Ext常用Tool

Ext.onReady(function() {
    var mPanel = Ext.create('Ext.panel.Panel', {
        title: 'Panel',
         '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'
            }
        ]
    });
});
原文地址:https://www.cnblogs.com/yshyee/p/3698445.html