|
|
@ -7,16 +7,30 @@ BI.HalfButton = BI.inherit(BI.BasicButton, { |
|
|
|
_defaultConfig: function () { |
|
|
|
_defaultConfig: function () { |
|
|
|
var conf = BI.HalfIconButton.superclass._defaultConfig.apply(this, arguments); |
|
|
|
var conf = BI.HalfIconButton.superclass._defaultConfig.apply(this, arguments); |
|
|
|
return BI.extend(conf, { |
|
|
|
return BI.extend(conf, { |
|
|
|
extraCls: "bi-half-button bi-high-light-border", |
|
|
|
selected: false, |
|
|
|
height: 14, |
|
|
|
|
|
|
|
width: 14, |
|
|
|
width: 14, |
|
|
|
selected: false |
|
|
|
height: 14, |
|
|
|
|
|
|
|
iconWidth: 14, |
|
|
|
|
|
|
|
iconHeight: 14, |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
render: function () { |
|
|
|
|
|
|
|
var o = this.options; |
|
|
|
|
|
|
|
return { |
|
|
|
|
|
|
|
type: "bi.center_adapt", |
|
|
|
|
|
|
|
items: [{ |
|
|
|
|
|
|
|
type: "bi.default", |
|
|
|
|
|
|
|
cls: "bi-half-button bi-high-light-border", |
|
|
|
|
|
|
|
width: o.iconWidth, |
|
|
|
|
|
|
|
height: o.iconHeight, |
|
|
|
|
|
|
|
}], |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
doClick: function () { |
|
|
|
doClick: function () { |
|
|
|
BI.HalfButton.superclass.doClick.apply(this, arguments); |
|
|
|
BI.HalfButton.superclass.doClick.apply(this, arguments); |
|
|
|
if(this.isValid()) { |
|
|
|
if (this.isValid()) { |
|
|
|
this.fireEvent(BI.HalfButton.EVENT_CHANGE); |
|
|
|
this.fireEvent(BI.HalfButton.EVENT_CHANGE); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|