var cfg = {
tag : 'button',
+ cls : 'roo-button',
html: 'hello'
};
if (this.toggle===true) {
cfg={
tag: 'div',
- cls: 'slider-frame',
+ cls: 'slider-frame roo-button',
cn: [
{
tag: 'span',
if (true) {
if (this.theme==='default') {
- cfg.cls = 'btn';
+ cfg.cls = 'btn roo-button';
if (this.parentType != 'Navbar') {
this.weight = this.weight.length ? this.weight : 'default';
// Roo.log('init events?');
// Roo.log(this.el.dom);
+ this.el.on('click', this.onClick, this);
this.el.on('click', this.onClick, this);
//this.el.select('button',true).on('click', this.onClick, this);