SpreadJS Documentation
inCellDropdown Field
Indicates whether to display a drop-down button.
Syntax
var instance = new GcSpread.Sheets.DefaultDataValidator(condition);
var value; // Type: boolean
value = instance.inCellDropdown;
var inCellDropdown : boolean;
Example
This example sets the inCellDropdown property.
spread.highlightInvalidData(true);
var dv = GcSpread.Sheets.DefaultDataValidator.createListValidator("1,2,3");
dv.showInputMessage = true;
dv.inputMessage = "Value must be 1, 2 or 3.";
dv.inputTitle = "tip";
dv.inCellDropdown = true;
activeSheet.setDataValidator(1, 1, dv); 
var validList = activeSheet.getDataValidator(1, 1).getValidList(sheet, 1, 1);
See Also

Reference

DefaultDataValidator type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.