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.

22 lines
800 B

8 years ago
/**
* Created by roy on 15/10/16.
7 years ago
* 右与下箭头切换的树节点
8 years ago
*/
7 years ago
BI.ArrowTreeGroupNodeCheckbox = BI.inherit(BI.IconButton, {
_defaultConfig: function () {
return BI.extend(BI.ArrowTreeGroupNodeCheckbox.superclass._defaultConfig.apply(this, arguments), {
3 years ago
extraCls: "bi-arrow-group-node-checkbox expander-right-font"
8 years ago
});
},
7 years ago
setSelected: function (v) {
8 years ago
BI.ArrowTreeGroupNodeCheckbox.superclass.setSelected.apply(this, arguments);
if(v) {
this.element.removeClass("expander-right-font").addClass("expander-down-font");
} else {
this.element.removeClass("expander-down-font").addClass("expander-right-font");
8 years ago
}
}
});
3 years ago
BI.shortcut("bi.arrow_group_node_checkbox", BI.ArrowTreeGroupNodeCheckbox);