SpreadJS製品ヘルプ
cellButtons フィールド
GC.Spread.Sheets 名前空間 > Style クラス : cellButtons フィールド
セルのセルボタンを示します。
シンタックス
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;
使用例
leftButtonConfig1 = {
    caption: "left",
    enabled: true,
    visibility:GC.Spread.Sheets.ButtonVisibility.always,
};
rightButtonConfig1 = {
    caption: "left",
    enabled: true,
    visibility:GC.Spread.Sheets.ButtonVisibility.onSelected,
};
//スタイルを作成します。
var style = new GC.Spread.Sheets.Style();
style.cellButtons=[
     leftButtonConfig1,
     rightButtonConfig1
];
sheet.setStyle(0, 0, style);
関連トピック

参照

Style クラス