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'
            }
        ]
    });
});

 

 

 

posted @ 2014-04-29 08:47  yshy  阅读(278)  评论(0编辑  收藏  举报