SpreadJS Documentation
remove Method
GC.Spread.Sheets.StatusBar Namespace > StatusBar type : remove Method
The name of the StatusItem.
Remove the item from the StatusBar.
Syntax
var instance = new GC.Spread.Sheets.StatusBar.StatusBar(host);
var value; // Type: boolean
value = instance.remove(itemName);
function remove( 
   itemName : string
) : boolean;

Parameters

itemName
The name of the StatusItem.

Return Value

If true means remove success, else failed.
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);
// do something
statusBar.remove(spanItemName);
See Also

Reference

StatusBar type