SpreadJS 13
GC.Spread.Sheets Namespace / CaptionAlignment Enumeration
In This Topic
    CaptionAlignment Enumeration
    In This Topic
    Specifies the position of caption.
    Members
    MemberDescription
    leftIndicates the caption is in left of the button.
    rightIndicates the caption is in right of the button.
    Example
    //This example sets the position of caption.
    //create config
    leftButtonConfig1 = {
        caption: "left",
        enabled: true,
        position: GC.Spread.Sheets.ButtonPosition.right,
        captionAlign:GC.Spread.Sheets.CaptionAlignment.right,
    };
    rightButtonConfig1 = {
        caption: "left",
        enabled: true,
        position: GC.Spread.Sheets.ButtonPosition.left,
        captionAlign:GC.Spread.Sheets.CaptionAlignment.left,
    };
    //create style
    var style = new GC.Spread.Sheets.Style();
    style.cellButtons=[
         leftButtonConfig1,
         rightButtonConfig1
    ];
    sheet.setStyle(0, 0, style);
    Inheritance Hierarchy

    Object
       GC.Spread.Sheets.CaptionAlignment

    See Also