SpreadJS Documentation
remove Method
The name of the item to be removed.
Removes the toolbar item with the specified name.
Syntax
var instance = new GcSpread.Sheets.TouchToolStrip(spread, host);
var value; // Type: TouchToolStripItem
value = instance.remove(name);
function remove( 
   name : string
) : TouchToolStripItem;

Parameters

name
The name of the item to be removed.

Return Value

The removed item.
Example
This example removes an item from the toolbar.
<input type="button" id="button1" value="button1"/>

spread.touchToolStrip.add(new GcSpread.Sheets.TouchToolStripItem("Cut", "Delete", "cut.png", function(){ }))
spread.touchToolStrip.getItem("Cut").font("15px Arial").foreColor("red");
spread.touchToolStrip.add(new GcSpread.Sheets.TouchToolStripSeparator());

$("#button1").click(function () {
spread.touchToolStrip.remove("Cut");
activeSheet.isPaintSuspended(false);
activeSheet.repaint();
    });
See Also

Reference

TouchToolStrip class

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.