Extjs Toolbar 当做弹出菜单

                            menuAlign: 'tl-tr',
                            listeners: {
                                mouseover: function(btn) {
                                   btn.toolb.showBy(btn,btn.menuAlign);
                                }
                            },
                            //handler: Ext.bind(me.onItemclick, me),
                            toolb : Ext.create('Ext.toolbar.Toolbar', {
                                floating: true,
                                dock: 'left',
                                defaults: {
                                    scale: 'medium',
                                    iconAlign: 'left',
                                    textAlign: 'left'
                                },
                                items: [{
                                    text: 'regular item 1',
                                    iconCls: 'menu_system_user_24',
                                    width: 170
                                },'-',{
                                    text: 'regular item 2',
                                    iconCls: 'menu_system_user_24'
                                },'-',{
                                    text: 'regular item 3',
                                    iconCls: 'menu_system_user_24'
                                }]
                            })

 

posted @ 2013-09-05 14:20  大新博客  阅读(468)  评论(0编辑  收藏  举报