var cfg = {
cls: 'btn-group',
html : null
- }
+ };
cfg.html = this.html || cfg.html;
cfg = {
cls: 'btn-toolbar',
html: null
- }
+ };
return cfg;
}
}
return cfg;
+ },
+ /**
+ * Add a button to the group (similar to NavItem API.)
+ */
+ addItem : function(cfg)
+ {
+ var cn = new Roo.bootstrap.Button(cfg);
+ //this.register(cn);
+ cn.parentId = this.id;
+ cn.onRender(this.el, null);
+ return cn;
}
});