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.

27 lines
877 B

8 years ago
/**
* 十字型的树节点
* @class BI.FirstTreeNodeCheckbox
* @extends BI.IconButton
*/
BI.FirstTreeNodeCheckbox = BI.inherit(BI.IconButton, {
_defaultConfig: function() {
return BI.extend( BI.FirstTreeNodeCheckbox.superclass._defaultConfig.apply(this, arguments), {
extraCls: "tree-collapse-icon-type2",
iconWidth: 25,
iconHeight: 25
});
},
_init:function() {
BI.FirstTreeNodeCheckbox.superclass._init.apply(this, arguments);
},
setSelected: function(v){
BI.FirstTreeNodeCheckbox.superclass.setSelected.apply(this, arguments);
if(v===true) {
this.element.addClass("tree-expand-icon-type2");
} else {
this.element.removeClass("tree-expand-icon-type2");
}
}
});
8 years ago
BI.shortcut("bi.first_tree_node_checkbox", BI.FirstTreeNodeCheckbox);