SpreadJS Documentation
getItem Method
GC.Spread.Sheets.Touch Namespace > TouchToolStrip class : getItem Method
The item name.
Gets the item with the specified name.
Syntax
var instance = new GC.Spread.Sheets.Touch.TouchToolStrip(workbook, host);
var value; // Type: any
value = instance.getItem(name);
function getItem( 
   name : string
) : any;

Parameters

name
The item name.

Return Value

If the item exists in the toolbar, the item is returned; otherwise, returns undefined.
Example
This example creates a custom item in the toolbar.
<input type="button" id="button1" value="button1"/>

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

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

Reference

TouchToolStrip class