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'

            }

        ]

    });

});

 

 

 

你可能感兴趣的:(tool)