SpreadJS Documentation
GC.Spread.Sheets Namespace / Style class / dropDowns Field
In This Topic
    dropDowns Field
    In This Topic
    Indicates the dropdown type 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: dropDowns
    value = instance.dropDowns;
    var dropDowns : dropDowns;
    Example
    leftButtonConfig1 = {
        caption: "left",
        enabled: true,
        isLeft: true,
        visibility:GC.Spread.Sheets.ButtonVisibility.always,
        command: "opendropdown"
    }
    //create style
    var style = new GC.Spread.Sheets.Style();
    style.cellButtons=[
         leftButtonConfig1
    ];
    style.dropDowns= [{ type: "colorPicker" }];
    sheet.setStyle(0, 0, style);
    See Also

    Reference

    Style class