SpreadJS 13
GC.Spread.Sheets.StatusBar Namespace / StatusItem type
In This Topic
    StatusItem type
    In This Topic
    The base class of status item provides basic value display and related context menu item function.
    Syntax
    var instance = new GC.Spread.Sheets.StatusBar.StatusItem(name,
                                                            options,
                                                            options.menuContent,
                                                            options.align,
                                                            options.tipText,
                                                            options.visible,
                                                            options.showStatusInContexMenu,
                                                            options.value);
    function StatusItem;
    Example
    let StatusItem = GC.Spread.Sheets.StatusBar.StatusItem;
    let labelItem = new StatusItem('labelItem', {menuContent: 'label', value: 'text'});
    Inheritance Hierarchy

    Object
       GC.Spread.Sheets.StatusBar.StatusItem

    Constructors
     NameDescription
    public ConstructorThe base class of status item provides basic value display and related context menu item function.  
    Top
    Methods
     NameDescription
    public MethodBind the Context. Can override to add context related event listener.  
    public MethodCreate the item element on statusbar. Can override for customize item.  
    public MethodDispose the statusbar to unbind context, remove all listener and dispose all element.  
    public MethodUnbind the Context. Can override to remove context related event listener.  
    public MethodThe callback for status bar update. Called when status bar bind or update function, or status bar check changed in context menu. The update related operations can realize in it. Users also should call onUpdate when current item need update. The default operations in super is update current item by visible.  
    Top
    See Also