/** * Created by roy on 15/10/16. * 右与下箭头切换的树节点 */ BI.ArrowTreeGroupNodeCheckbox = BI.inherit(BI.IconButton, { _defaultConfig: function () { var conf = BI.ArrowTreeGroupNodeCheckbox.superclass._defaultConfig.apply(this, arguments); return BI.extend(conf, { 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);