Using Validate.Options not work

Using Validate.Options not work

ClarenceClarence Posts: 19Questions: 7Answers: 0

I use it but now working

const {
Editor,
Field,
Validate,
Format,
Options,
Upload,
promisify,
} = require('datatables.net-editor-server');

new Field('nickname')
.validator(Validate.notEmpty(new Validate.Options({
message: 'Error Message'
})))

It still return 'Input not valid'

Answers

This discussion has been closed.