/** * guy * @extends BI.Single * @type {*|void|Object} */ BI.HalfButton = BI.inherit(BI.BasicButton, { _defaultConfig: function () { var conf = BI.HalfIconButton.superclass._defaultConfig.apply(this, arguments); return BI.extend(conf, { extraCls: "bi-half-button bi-high-light-border", height: 14, width: 14, selected: false }); }, _init: function () { BI.HalfButton.superclass._init.apply(this, arguments); BI.createWidget({ type: "bi.center_adapt", element: this.element, items: [{ type: "bi.layout", cls: "bi-high-light-background", width: 8, height: 8 }] }); }, doClick: function () { BI.HalfButton.superclass.doClick.apply(this, arguments); if(this.isValid()) { this.fireEvent(BI.HalfButton.EVENT_CHANGE); } } }); BI.HalfButton.EVENT_CHANGE = "HalfIconButton.EVENT_CHANGE"; BI.shortcut("bi.half_button", BI.HalfButton);