Open helmidhaoui opened 4 years ago
xs.datas[0].addValidation('cell', 'A1:A2', {
type: 'list',
required: false,
value: 'a,b,c',
operator: 'be'
})
@param mode //'cell'
@param ref //string like:'A1:A2'
@param validator //object
{
type:'list',// date|number|list|phone|email
required:false, //false or true
value:'a,b,c', // separated with ','
operator:'be'//operator: be(between)|nbe|eq(equal)|neq|lt(less than)|lte|gt(greater than)|gte
}
did this work for your guys?
How can I add a data validation to a specifique cell from JS.