fineui是帆软报表和BI产品线所使用的前端框架。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
856 B

8 years ago
/**
* guy
* @extends BI.Single
* @type {*|void|Object}
*/
BI.Radio = BI.inherit(BI.IconButton, {
7 years ago
_defaultConfig: function () {
var conf = BI.Radio.superclass._defaultConfig.apply(this, arguments);
8 years ago
return BI.extend(conf, {
baseCls: (conf.baseCls || "") + " bi-radio radio-icon",
selected: false,
handler: BI.emptyFn,
width: 16,
height: 16,
iconWidth: 16,
iconHeight: 16
7 years ago
});
8 years ago
},
7 years ago
_init: function () {
8 years ago
BI.Radio.superclass._init.apply(this, arguments);
},
7 years ago
doClick: function () {
8 years ago
BI.Radio.superclass.doClick.apply(this, arguments);
7 years ago
if(this.isValid()) {
8 years ago
this.fireEvent(BI.Radio.EVENT_CHANGE);
}
}
});
BI.Radio.EVENT_CHANGE = "Radio.EVENT_CHANGE";
8 years ago
BI.shortcut("bi.radio", BI.Radio);