We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Adds a dataValidation object to a workbook's currently active sheet.
addDataValidation( workbook, dataValidation )
workbook
dataValidation
Chainable? Yes.
dv = spreadsheet.newDataValidation() .onCells( "A1:B1" ) .withValues( [ "London", "New York", "Paris" ] ); wb = spreadsheet.newXls(); spreadsheet.addDataValidation( wb, dv );