SpreadJS 13
GC.Spread.Sheets.Touch Namespace / TouchToolStripItem class / image Method
The path and filename for the item image source.
In This Topic
    image Method
    In This Topic
    Gets or sets the source of the item image.
    Syntax
    var instance = new GC.Spread.Sheets.Touch.TouchToolStripItem(name, text, image, command, canExecute);
    var returnValue; // Type: any
    returnValue = instance.image(value);
    function image( 
       value : string
    ) : any;

    Parameters

    value
    The path and filename for the item image source.

    Return Value

    If no value is set, returns the source of the item image; 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