SpreadJS Documentation
onDispose Method
GC.Spread.Sheets.StatusBar Namespace > StatusItem type : onDispose Method
Dispose the statusbar to unbind context, remove all listener and dispose all element.
Syntax
var instance = new GC.Spread.Sheets.StatusBar.StatusItem(name, options);
var value; // Type: any
value = instance.onDispose();
function onDispose() : any;
Example
let StatusItem = GC.Spread.Sheets.StatusBar.StatusItem;
function LabelItem (name, options) {
  StatusItem.call(this, name, options);
}
LabelItem.prototype = new StatusItem();
LabelItem.prototype.onDispose = function () {
  // dispose current item.
  // then call super dispose.
  StatusItem.prototype.onDispose.call(this);
}
See Also

Reference

StatusItem type