SpreadJS Documentation
name Method
The name of the toolbar item.
The name of the item.
Syntax
var instance = new GcSpread.Sheets.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 called without a parameter, returns the current item name; otherwise, returns the current item object.
Example
This example adds a delete image with red text.
var tts = new GcSpread.Sheets.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 type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.