SpreadJS Documentation
GC.Spread.Sheets Namespace / Style class / cellButtons Field
In This Topic
    cellButtons Field
    In This Topic
    Indicates the cellButtons of cell.
    Syntax
    var instance = new GC.Spread.Sheets.Style(backColor,
                                             foreColor,
                                             hAlign,
                                             vAlign,
                                             font,
                                             themeFont,
                                             formatter,
                                             borderLeft,
                                             borderTop,
                                             borderRight,
                                             borderBottom,
                                             diagonalDown,
                                             diagonalUp,
                                             locked,
                                             textIndent,
                                             wordWrap,
                                             shrinkToFit,
                                             backgroundImage,
                                             cellType,
                                             backgroundImageLayout,
                                             tabStop,
                                             textDecoration,
                                             imeMode,
                                             name,
                                             parentName,
                                             watermark,
                                             cellPadding,
                                             labelOptions,
                                             labelOptions.alignment,
                                             labelOptions.visibility,
                                             labelOptions.font,
                                             labelOptions.foreColor,
                                             labelOptions.margin,
                                             isVerticalText,
                                             textOrientation);
    var value; // Type: cellButtons
    value = instance.cellButtons;
    var cellButtons : cellButtons;
    Example
    leftButtonConfig1 = {
        caption: "left",
        enabled: true,
        visibility:GC.Spread.Sheets.ButtonVisibility.always,
    };
    rightButtonConfig1 = {
        caption: "left",
        enabled: true,
        visibility:GC.Spread.Sheets.ButtonVisibility.onSelected,
    };
    //create style
    var style = new GC.Spread.Sheets.Style();
    style.cellButtons=[
         leftButtonConfig1,
         rightButtonConfig1
    ];
    sheet.setStyle(0, 0, style);
    See Also

    Reference

    Style class