SpreadJS 13
SpreadJS Documentation / Developer's Guide / Touch Support with SpreadJS Widget / Touch Support / Touch Support with the Touch Toolbar
In This Topic
    Touch Support with the Touch Toolbar
    In This Topic

    You can use the default touch toolbar to cut, copy, paste, or automatically fill cells.

    Tap a selected range to display the touch toolbar. The following image displays a default touch toolbar.

    Default touch toolbar

    You can add or remove items in the toolbar. You can also customize the image and text in the toolbar. You can add a separator in the toolbar as well. The following image displays a custom touch toolbar.

    Custom touch toolbar

    Using Code

    This example adds a custom item and image to the touch toolbar.

    JavaScript
    Copy Code
    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