SpreadJS 13
GC.Spread.Sheets.StatusBar Namespace / StatusBar type / get Method
In This Topic
    get Method
    In This Topic
    Get the item by item name.
    Syntax
    var instance = new GC.Spread.Sheets.StatusBar.StatusBar(host, options, options.items);
    var value; // Type: StatusItem
    value = instance.get(itemName);
    function get( 
       itemName : string
    ) : StatusItem;

    Parameters

    itemName

    Return Value

    The StatusItem whose itemName is specified.
    Example
    let StatusItem = GC.Spread.Sheets.StatusBar.StatusItem;
    let spanItemName = 'spanItemName';
    let spanItem = new StatusItem(spanItemName, {menuContent: 'span', value: 'spanValue'});
    let spread = new GC.Spread.Sheets.Workbook(document.getElementById("ss"));
    let statusBar = new GC.Spread.Sheets.StatusBar.StatusBar(document.getElementById('statusBar'));
    statusBar.bind(spread);
    statusBar.add(spanItem);
    let spanItemInstance = statusBar.get(spanItemName);
    See Also

    Reference

    StatusBar type