SpreadJS Documentation
maxDropDownItems Method
GC.Spread.Sheets.CellTypes Namespace > ComboBox class : maxDropDownItems Method
The maximum item count of the drop-down list per page.
Gets or sets the maximum item count of the drop-down list per page.
Syntax
var instance = new GC.Spread.Sheets.CellTypes.ComboBox();
var returnValue; // Type: any
returnValue = instance.maxDropDownItems(value);
function maxDropDownItems( 
   value : number
) : any;

Parameters

value
The maximum item count of the drop-down list per page.

Return Value

If no value is set, returns the maximum item count of the drop-down list per page; otherwise, returns the combo box cellType.
Example
This example shows three items in the list at a time.
var cellType2 = new GC.Spread.Sheets.CellTypes.ComboBox();
cellType2.items(["a", "b", "c", "d", "e", "f", "g", "h"]);
cellType2.maxDropDownItems(3);
activeSheet.getCell(2, 2).cellType(cellType2);
});
See Also

Reference

ComboBox class