GcSpread.Sheets Namespace > DefaultDataValidator type : createListValidator Method |
var value; // Type: DefaultDataValidator value = GcSpread.Sheets.DefaultDataValidator.createListValidator(source);
function createListValidator( source : string ) : DefaultDataValidator;
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"; activeSheet.setDataValidator(1, 1, dv); var validList = activeSheet.getDataValidator(1, 1).getValidList(sheet, 1, 1);