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.LastTreeNodeCheckbox
* @extends BI.IconButton
*/
BI.LastTreeNodeCheckbox = BI.inherit(BI.IconButton, {
7 years ago
_defaultConfig: function () {
return BI.extend(BI.LastTreeNodeCheckbox.superclass._defaultConfig.apply(this, arguments), {
8 years ago
extraCls: "tree-collapse-icon-type4",
7 years ago
iconWidth: 24,
iconHeight: 24
8 years ago
});
},
7 years ago
_init: function () {
8 years ago
BI.LastTreeNodeCheckbox.superclass._init.apply(this, arguments);
},
7 years ago
setSelected: function (v) {
8 years ago
BI.LastTreeNodeCheckbox.superclass.setSelected.apply(this, arguments);
if (v === true) {
this.element.addClass("tree-expand-icon-type4");
8 years ago
} else {
this.element.removeClass("tree-expand-icon-type4");
8 years ago
}
}
});
8 years ago
BI.shortcut("bi.last_tree_node_checkbox", BI.LastTreeNodeCheckbox);