|
|
|
@ -15,16 +15,10 @@ BI.Pane = BI.inherit(BI.Widget, {
|
|
|
|
|
loadingText: "", |
|
|
|
|
loadingSize: "small", |
|
|
|
|
overlap: true, |
|
|
|
|
onLoaded: BI.emptyFn, |
|
|
|
|
loading: false |
|
|
|
|
onLoaded: BI.emptyFn |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_init: function () { |
|
|
|
|
BI.Pane.superclass._init.apply(this, arguments); |
|
|
|
|
this.options.loading && this.loading(); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_assertTip: function () { |
|
|
|
|
var self = this, o = this.options; |
|
|
|
|
if (!this._tipText) { |
|
|
|
@ -46,7 +40,6 @@ BI.Pane = BI.inherit(BI.Widget, {
|
|
|
|
|
|
|
|
|
|
loading: function () { |
|
|
|
|
var self = this, o = this.options; |
|
|
|
|
o.loading = true; |
|
|
|
|
var isIE = BI.isIE(); |
|
|
|
|
var loadingAnimation = BI.createWidget({ |
|
|
|
|
type: "bi.horizontal", |
|
|
|
@ -125,7 +118,6 @@ BI.Pane = BI.inherit(BI.Widget, {
|
|
|
|
|
|
|
|
|
|
loaded: function () { |
|
|
|
|
var self = this, o = this.options; |
|
|
|
|
o.loading = false; |
|
|
|
|
BI.Layers.remove(self.getName() + "-loading"); |
|
|
|
|
this._loading && this._loading.destroy(); |
|
|
|
|
o.onLoaded(); |
|
|
|
|