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.
25 lines
829 B
25 lines
829 B
/** |
|
* Created by roy on 15/10/16. |
|
* 右与下箭头切换的树节点 |
|
*/ |
|
BI.ArrowTreeGroupNodeCheckbox = BI.inherit(BI.IconButton, { |
|
|
|
props: function (conf) { |
|
return { |
|
extraCls: "bi-arrow-group-node-checkbox " + (conf.collapseIcon || "expander-right-font"), |
|
expandIcon: "expander-down-font", |
|
collapseIcon: "expander-right-font" |
|
}; |
|
}, |
|
|
|
setSelected: function (v) { |
|
var o = this.options; |
|
BI.ArrowTreeGroupNodeCheckbox.superclass.setSelected.apply(this, arguments); |
|
if(v) { |
|
this.element.removeClass(o.collapseIcon).addClass(o.expandIcon); |
|
} else { |
|
this.element.removeClass(o.expandIcon).addClass(o.collapseIcon); |
|
} |
|
} |
|
}); |
|
BI.shortcut("bi.arrow_group_node_checkbox", BI.ArrowTreeGroupNodeCheckbox);
|
|
|