SpreadJS Documentation
name Method
GC.Spread.Sheets.Touch Namespace > TouchToolStripItem class : name Method
The name of the toolbar item.
Gets or sets the name of the item.
Syntax
var instance = new GC.Spread.Sheets.Touch.TouchToolStripItem(name, text, image, command, canExecute);
var returnValue; // Type: any
returnValue = instance.name(value);
function name( 
   value : string
) : any;

Parameters

value
The name of the toolbar item.

Return Value

If no value is set, returns the name of the item; otherwise, returns the toolbar item.
Example
This example adds a delete image with red text.
var tts = new GC.Spread.Sheets.Touch.TouchToolStripItem();
tts.image("cut.png");
tts.name("C");
tts.text("Delete");
spread.touchToolStrip.add(tts, function(){ });
spread.touchToolStrip.getItem("C").font("15px Arial").foreColor("red");
See Also

Reference

TouchToolStripItem class