|
|
|
@ -7,7 +7,7 @@ BI.SelectTreeExpander = BI.inherit(BI.Widget, {
|
|
|
|
|
_defaultConfig: function () { |
|
|
|
|
return BI.extend(BI.SelectTreeExpander.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
|
baseCls: "bi-select-tree-expander", |
|
|
|
|
trigger: "click", |
|
|
|
|
trigger: "", |
|
|
|
|
toggle: true, |
|
|
|
|
direction: "bottom", |
|
|
|
|
isDefaultInit: true, |
|
|
|
@ -20,7 +20,7 @@ BI.SelectTreeExpander = BI.inherit(BI.Widget, {
|
|
|
|
|
BI.SelectTreeExpander.superclass._init.apply(this, arguments); |
|
|
|
|
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) { |
|
|
|
|
if (type === BI.Events.CLICK) { |
|
|
|
|
if (this.isSelected()) { |
|
|
|
|