SpreadJS 13
GC.Spread.Sheets.Touch Namespace / TouchToolStripSeparator class / TouchToolStripSeparator Constructor
Defines when to display the separator with a function. If returns true, display the separator; otherwise, hide the separator.
In This Topic
    TouchToolStripSeparator Constructor
    In This Topic
    Represents a separator in the toolbar.
    Syntax
    var instance = new GC.Spread.Sheets.Touch.TouchToolStripSeparator(canExecute);
    function TouchToolStripSeparator( 
       canExecute : Object
    ) : TouchToolStripSeparator;

    Parameters

    canExecute
    Defines when to display the separator with a function. If returns true, display the separator; otherwise, hide the separator.
    Example
    This example adds a delete image with red text.
    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());
    See Also