SpreadJS 14
GC.Spread.Sheets Namespace / ButtonImageType Enumeration
In This Topic
    ButtonImageType Enumeration
    In This Topic
    Specifies the type of cellbutton.
    Members
    MemberDescription
    cancelIndicates the cellbutton type is cancel.
    clearIndicates the cellbutton type is clear.
    collapseIndicates the cellbutton type is collapse.
    customIndicates the cellbutton type is custom.
    dropdownIndicates the cellbutton type is dropdown.
    ellipsisIndicates the cellbutton type is ellipsis.
    expandIndicates the cellbutton type is expand.
    leftIndicates the cellbutton type is left.
    minusIndicates the cellbutton type is minus.
    noneIndicates the cellbutton image type is none.
    okIndicates the cellbutton type is ok.
    plusIndicates the cellbutton type is plus.
    redoIndicates the cellbutton type is redo.
    rightIndicates the cellbutton type is right.
    searchIndicates the cellbutton type is search.
    separatorIndicates the cellbutton type is separator.
    spinLeftIndicates the cellbutton type is spinLeft.
    spinRightIndicates the cellbutton type is spinRight.
    undoIndicates the cellbutton type is undo.
    Example
    //This example sets the type of cellbutton.
    //create config
    leftButtonConfig1 = {
        caption: "left",
        enabled: true,
        isLeft: true,
        imageType:GC.Spread.Sheets.ButtonImageType.left,
    };
    rightButtonConfig1 = {
        caption: "left",
        enabled: true,
        isLeft: false,
        imageType:GC.Spread.Sheets.ButtonImageType.right,
    };
    //create style
    var style = new GC.Spread.Sheets.Style();
    style.cellButtons=[
         leftButtonConfig1,
         rightButtonConfig1
    ];
    sheet.setStyle(0, 0, style);
    Inheritance Hierarchy

    Object
       GC.Spread.Sheets.ButtonImageType

    See Also