|
|
@ -8,6 +8,12 @@ BI.IconButton = BI.inherit(BI.BasicButton, { |
|
|
|
var conf = BI.IconButton.superclass._defaultConfig.apply(this, arguments); |
|
|
|
var conf = BI.IconButton.superclass._defaultConfig.apply(this, arguments); |
|
|
|
return BI.extend(conf, { |
|
|
|
return BI.extend(conf, { |
|
|
|
_baseCls: (conf._baseCls || "") + " bi-icon-button horizon-center", |
|
|
|
_baseCls: (conf._baseCls || "") + " bi-icon-button horizon-center", |
|
|
|
|
|
|
|
hgap: 0, |
|
|
|
|
|
|
|
vgap: 0, |
|
|
|
|
|
|
|
tgap: 0, |
|
|
|
|
|
|
|
bgap: 0, |
|
|
|
|
|
|
|
lgap: 0, |
|
|
|
|
|
|
|
rgap: 0, |
|
|
|
iconWidth: null, |
|
|
|
iconWidth: null, |
|
|
|
iconHeight: null |
|
|
|
iconHeight: null |
|
|
|
}); |
|
|
|
}); |
|
|
@ -28,6 +34,12 @@ BI.IconButton = BI.inherit(BI.BasicButton, { |
|
|
|
BI.createWidget({ |
|
|
|
BI.createWidget({ |
|
|
|
type: "bi.default", |
|
|
|
type: "bi.default", |
|
|
|
element: this, |
|
|
|
element: this, |
|
|
|
|
|
|
|
hgap: o.hgap, |
|
|
|
|
|
|
|
vgap: o.vgap, |
|
|
|
|
|
|
|
lgap: o.lgap, |
|
|
|
|
|
|
|
rgap: o.rgap, |
|
|
|
|
|
|
|
tgap: o.tgap, |
|
|
|
|
|
|
|
bgap: o.bgap, |
|
|
|
items: [this.icon] |
|
|
|
items: [this.icon] |
|
|
|
}); |
|
|
|
}); |
|
|
|
} else { |
|
|
|
} else { |
|
|
@ -35,6 +47,12 @@ BI.IconButton = BI.inherit(BI.BasicButton, { |
|
|
|
BI.createWidget({ |
|
|
|
BI.createWidget({ |
|
|
|
element: this, |
|
|
|
element: this, |
|
|
|
type: "bi.center_adapt", |
|
|
|
type: "bi.center_adapt", |
|
|
|
|
|
|
|
hgap: o.hgap, |
|
|
|
|
|
|
|
vgap: o.vgap, |
|
|
|
|
|
|
|
lgap: o.lgap, |
|
|
|
|
|
|
|
rgap: o.rgap, |
|
|
|
|
|
|
|
tgap: o.tgap, |
|
|
|
|
|
|
|
bgap: o.bgap, |
|
|
|
items: [this.icon] |
|
|
|
items: [this.icon] |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|