SpreadJS 13
GC.Spread.Sheets.StatusBar Namespace / StatusItem type / onDispose Method
In This Topic
    onDispose Method
    In This Topic
    Dispose the statusbar to unbind context, remove all listener and dispose all element.
    Syntax
    var instance = new GC.Spread.Sheets.StatusBar.StatusItem(name,
                                                            options,
                                                            options.menuContent,
                                                            options.align,
                                                            options.tipText,
                                                            options.visible,
                                                            options.showStatusInContexMenu,
                                                            options.value);
    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