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.
 
 
 

26 lines
968 B

/**
* 三角形的树节点
* Created by GUY on 2015/9/6.
* @class BI.TreeGroupNodeCheckbox
* @extends BI.IconButton
*/
BI.TreeGroupNodeCheckbox = BI.inherit(BI.IconButton, {
_defaultConfig: function () {
return BI.extend( BI.TreeGroupNodeCheckbox.superclass._defaultConfig.apply(this, arguments), {
extraCls: "tree-node-triangle-collapse-font"
});
},
_init: function () {
BI.TreeGroupNodeCheckbox.superclass._init.apply(this, arguments);
},
setSelected: function (v) {
BI.TreeGroupNodeCheckbox.superclass.setSelected.apply(this, arguments);
if(v) {
this.element.removeClass("tree-node-triangle-collapse-font").addClass("tree-node-triangle-expand-font");
} else {
this.element.removeClass("tree-node-triangle-expand-font").addClass("tree-node-triangle-collapse-font");
}
}
});
BI.shortcut("bi.tree_group_node_checkbox", BI.TreeGroupNodeCheckbox);