SpreadJS Documentation
TouchToolStripItem Constructor
The name of the item.
The item text.
The item image source.
Defines the executive function that occurs when the user taps the item.
Defines when to show the item by a function. If returns true, display the item; otherwise, hide the item.
Represents an item in the toolbar.
Syntax
var instance = new GcSpread.Sheets.TouchToolStripItem(name, text, image, command, canExecute);
function TouchToolStripItem( 
   name : string,
   text : string,
   image : string,
   command : any,
   canExecute : any
) : TouchToolStripItem;

Parameters

name
The name of the item.
text
The item text.
image
The item image source.
command
Defines the executive function that occurs when the user taps the item.
canExecute
Defines when to show the item by a function. If returns true, display the item; otherwise, hide the item.
Example
This example adds a delete image with red text.
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());
See Also

Reference

TouchToolStripItem type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.