[]
▸ findControl(host
): StatusBar
Gets the StatusBar instance by the host element.
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');
Name | Type | Description |
---|---|---|
host |
string | HTMLElement |
The host element or the host element id. |
The StatusBar instance.