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.
|
|
|
/**
|
|
|
|
* 统一的trigger图标按钮
|
|
|
|
*
|
|
|
|
* Created by GUY on 2015/9/16.
|
|
|
|
* @class BI.TriggerIconButton
|
|
|
|
* @extends BI.IconButton
|
|
|
|
*/
|
|
|
|
BI.TriggerIconButton = BI.inherit(BI.IconButton, {
|
|
|
|
|
|
|
|
_defaultConfig: function () {
|
|
|
|
var conf = BI.TriggerIconButton.superclass._defaultConfig.apply(this, arguments);
|
|
|
|
return BI.extend(conf, {
|
|
|
|
baseCls: (conf.baseCls || "") + " bi-trigger-icon-button",
|
|
|
|
extraCls: "pull-down-font"
|
|
|
|
});
|
|
|
|
},
|
|
|
|
|
|
|
|
_init: function () {
|
|
|
|
BI.TriggerIconButton.superclass._init.apply(this, arguments);
|
|
|
|
},
|
|
|
|
|
|
|
|
doClick: function () {
|
|
|
|
BI.TriggerIconButton.superclass.doClick.apply(this, arguments);
|
|
|
|
if (this.isValid()) {
|
|
|
|
this.fireEvent(BI.TriggerIconButton.EVENT_CHANGE, this);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
BI.TriggerIconButton.EVENT_CHANGE = "TriggerIconButton.EVENT_CHANGE";
|
|
|
|
BI.shortcut("bi.trigger_icon_button", BI.TriggerIconButton);
|