[]
▸ findControl(host
): StatusBar
通过宿主元素获取状态栏实例
代码示例
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');
属性名 | 类型 | 说明 |
---|---|---|
host |
string | HTMLElement |
宿主元素或宿主元素id |
状态栏实例