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
956 B

8 years ago
/**
* Created by zcf on 2016/9/22.
*/
8 years ago
BI.SliderIconButton = BI.inherit(BI.Widget, {
8 years ago
_defaultConfig: function () {
8 years ago
return BI.extend(BI.SliderIconButton.superclass._defaultConfig.apply(this, arguments), {
8 years ago
baseCls: "bi-single-slider-button"
8 years ago
});
},
_init: function () {
8 years ago
BI.extend(BI.SliderIconButton.superclass._init.apply(this, arguments));
8 years ago
this.slider = BI.createWidget({
type: "bi.icon_button",
8 years ago
cls: "slider-icon slider-button",
8 years ago
iconWidth: 14,
iconHeight: 14,
height: 14,
width: 14
});
BI.createWidget({
type: "bi.absolute",
element: this,
items: [{
el: this.slider,
top: 7,
left: -7
}],
width: 0,
height: 14
});
}
});
8 years ago
BI.shortcut("bi.single_slider_button", BI.SliderIconButton);