|
|
@ -7,7 +7,7 @@ BI.SelectTreeExpander = BI.inherit(BI.Widget, { |
|
|
|
_defaultConfig: function () { |
|
|
|
_defaultConfig: function () { |
|
|
|
return BI.extend(BI.SelectTreeExpander.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
return BI.extend(BI.SelectTreeExpander.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
baseCls: "bi-select-tree-expander", |
|
|
|
baseCls: "bi-select-tree-expander", |
|
|
|
trigger: "click", |
|
|
|
trigger: "", |
|
|
|
toggle: true, |
|
|
|
toggle: true, |
|
|
|
direction: "bottom", |
|
|
|
direction: "bottom", |
|
|
|
isDefaultInit: true, |
|
|
|
isDefaultInit: true, |
|
|
@ -20,7 +20,7 @@ BI.SelectTreeExpander = BI.inherit(BI.Widget, { |
|
|
|
BI.SelectTreeExpander.superclass._init.apply(this, arguments); |
|
|
|
BI.SelectTreeExpander.superclass._init.apply(this, arguments); |
|
|
|
var self = this, o = this.options; |
|
|
|
var self = this, o = this.options; |
|
|
|
|
|
|
|
|
|
|
|
this.trigger = BI.createWidget(BI.extend({stopPropagation: true}, o.el)); |
|
|
|
this.trigger = BI.createWidget(o.el); |
|
|
|
this.trigger.on(BI.Controller.EVENT_CHANGE, function (type) { |
|
|
|
this.trigger.on(BI.Controller.EVENT_CHANGE, function (type) { |
|
|
|
if (type === BI.Events.CLICK) { |
|
|
|
if (type === BI.Events.CLICK) { |
|
|
|
if (this.isSelected()) { |
|
|
|
if (this.isSelected()) { |
|
|
|