var value; // Type: DefaultDataValidator // パラメータ var source; //タイプ: string value = GC.Spread.Sheets.DataValidation.createListValidator(source);
function createListValidator( source : string ) : DefaultDataValidator;
パラメータ
- source
- リスト値。
戻り値の型
バリデーター。
var value; // Type: DefaultDataValidator // パラメータ var source; //タイプ: string value = GC.Spread.Sheets.DataValidation.createListValidator(source);
function createListValidator( source : string ) : DefaultDataValidator;
spread.options.highlightInvalidData = true; var dv = GC.Spread.Sheets.DataValidation.createListValidator("1,2,3"); dv.showInputMessage(true); dv.inputMessage("Value must be 1,2 or 3"); dv.inputTitle("tip"); activeSheet.setDataValidator(1,1,1,1,dv, GC.Spread.Sheets.SheetArea.viewport); alert(activeSheet.getDataValidator(1,1).getValidList(activeSheet,1,1));
spread.options.highlightInvalidData = true; var dv = GC.Spread.Sheets.DataValidation.createListValidator("1,2,3"); dv.showInputMessage(true); dv.inputMessage("Value must be 1,2 or 3"); dv.inputTitle("tip"); activeSheet.setDataValidator(1,1,1,1,dv,GC.Spread.Sheets.SheetArea.viewport); alert(activeSheet.getDataValidator(1,1).getValidList(activeSheet,1,1));