随笔-9  评论-168  文章-266  trackbacks-0
Ext.onReady(function() {
            Ext.QuickTips.init();
           ............
            var content_c_book_grid = new Ext.grid.EditorGridPanel({
                        region : "center",
                        cm : cm,
                        sm : sm,
                        store : store,
                        tbar : [{text : "新建",}]
                    });
            store.load();
            var content_c_book = new Ext.Panel({
                        title : "书籍管理",
                        closable : true,
                        layout : "border",
                        items : [ content_c_book_grid]
                    });
            var content_c = new Ext.TabPanel({
                        margins : "5 5 5 5",
                        region : "center",
                        activeTab : 0,
                        items : content_c_book
                    });
                    // 以下Toolbar必须放在content_c_book_grid包括其父容器显示出来以后.即容器与父容器最后一次调用后.
                    // 这其实也是一种添加组件的方法.
            new Ext.Toolbar({
                        renderTo : content_c_book_grid.tbar,   //添加多个工具栏的容器
                        items : [{
                                    text : "查询"
                                }]
                    })
posted on 2009-02-26 13:22 紫蝶∏飛揚↗ 阅读(1752) 评论(1)  编辑  收藏 所属分类: EXTJS

评论:
# re: EXTJS 添加多个工具栏 2012-10-22 11:17 | 李胜利
listeners : {
'render' : function() {
this.twoTbar.render(this.tbar);
this.threeTbar.render(this.tbar);
}

},  回复  更多评论
  

只有注册用户登录后才能发表评论。


网站导航: