var instance = new GC.Spread.Sheets.StatusBar.StatusItem(name, options); var value; // Type: any value = instance.onCreateItemView(container);
function onCreateItemView( container : HTMLElement ) : any;
Parameters
- container
var instance = new GC.Spread.Sheets.StatusBar.StatusItem(name, options); var value; // Type: any value = instance.onCreateItemView(container);
function onCreateItemView( container : HTMLElement ) : any;
let StatusItem = GC.Spread.Sheets.StatusBar.StatusItem; function LabelItem (name, options) { StatusItem.call(this, name, options); } LabelItem.prototype = new StatusItem(); LabelItem.prototype.onCreateItemView = function (container) { let item = document.createElement('div'); item.innerText = this.value; container.appendChild(item); // add event listener for container } statusBar.add(new LabelItem('labelItem', {menuContent: 'label', value: 'options test'}));