|
|
|
@ -86,15 +86,18 @@ BI.Tab = BI.inherit(BI.Widget, {
|
|
|
|
|
|
|
|
|
|
created: function () { |
|
|
|
|
var self = this, o = this.options; |
|
|
|
|
if (o.showIndex !== false) { |
|
|
|
|
if (BI.isFunction(o.showIndex)) { |
|
|
|
|
var v = this.__watch(o.showIndex, function (context, newValue) { |
|
|
|
|
self.setSelect(newValue); |
|
|
|
|
}); |
|
|
|
|
this.setSelect(v); |
|
|
|
|
} else { |
|
|
|
|
this.setSelect(o.showIndex); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var showIndex; |
|
|
|
|
if (BI.isFunction(o.showIndex)) { |
|
|
|
|
showIndex = this.__watch(o.showIndex, function (context, newValue) { |
|
|
|
|
self.setSelect(newValue); |
|
|
|
|
}); |
|
|
|
|
} else { |
|
|
|
|
showIndex = o.showIndex; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (showIndex !== false) { |
|
|
|
|
this.setSelect(showIndex); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -135,7 +138,7 @@ BI.Tab = BI.inherit(BI.Widget, {
|
|
|
|
|
getTab: function (v) { |
|
|
|
|
this._assertCard(v); |
|
|
|
|
|
|
|
|
|
return this.layout.getCardByName(v); |
|
|
|
|
return this.layout.getCardByName(v); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
setValue: function (v) { |
|
|
|
|