|
|
|
@ -45,6 +45,7 @@ BI.Tab = BI.inherit(BI.Widget, {
|
|
|
|
|
cardCreator: function (v) { |
|
|
|
|
var card = o.cardCreator.apply(self, arguments); |
|
|
|
|
self.cardMap[v] = card; |
|
|
|
|
|
|
|
|
|
return card; |
|
|
|
|
}, |
|
|
|
|
afterCardShow: function (v) { |
|
|
|
@ -91,9 +92,10 @@ BI.Tab = BI.inherit(BI.Widget, {
|
|
|
|
|
self.setSelect(newValue); |
|
|
|
|
}); |
|
|
|
|
this.setSelect(v); |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
this.setSelect(o.showIndex); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
setSelect: function (v, action, callback) { |
|
|
|
@ -112,6 +114,7 @@ BI.Tab = BI.inherit(BI.Widget, {
|
|
|
|
|
if (BI.isEqual(name, (cardname + ""))) { |
|
|
|
|
self.layout.deleteCardByName(name); |
|
|
|
|
delete self.cardMap[name]; |
|
|
|
|
|
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
@ -131,6 +134,7 @@ BI.Tab = BI.inherit(BI.Widget, {
|
|
|
|
|
|
|
|
|
|
getTab: function (v) { |
|
|
|
|
this._assertCard(v); |
|
|
|
|
|
|
|
|
|
return this.layout.getCardByName(v); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|