SpreadJS 14
GC.Spread.Sheets Namespace / StatusBar type / findControl Method
The host element or the host element id.
In This Topic
    findControl Method
    In This Topic
    Gets the StatusBar instance by the host element.
    Syntax
    var value; // Type: StatusBar
    value = GC.Spread.Sheets.StatusBar.findControl(host);
    function findControl( 
       host : undefined
    ) : StatusBar;

    Parameters

    host
    The host element or the host element id.

    Return Value

    The StatusBar instance.
    Example
    var spread = new GC.Spread.Sheets.Workbook(document.getElementById("ss"));
    var spanItem = new GC.Spread.Sheets.StatusBar.StatusItem('spanItem', {menuContent: 'current span', value: 'span test'});
    var statusBar = new GC.Spread.Sheets.StatusBar.StatusBar(
    document.getElementById('statusBar'),
    { items: [spanItem] }
    );
    statusBar.bind(spread);
    var statusBarInstance = GC.Spread.Sheets.StatusBar.findControl('statusBar');
    See Also

    Reference

    StatusBar type