examples/js/cell-edit/cell-edit-classname.js
function jobNameValidator(value) {
  const response = { isValid: true, notification: { type: 'success', msg: '', title: '' } };
  if (!value) {
    response.isValid = false;
    response.notification.type = 'error';
    response.notification.msg = 'Value must be inserted';
    response.notification.title = 'Requested Value';
  } else if (value.length < 10) {
    response.isValid = false;
    response.notification.type = 'error';
    response.notification.msg = 'Value must have 10+ characters';
    response.notification.title = 'Invalid Value';
  }
  return response;
}
function jobNameValidator(value) {
  const response = { isValid: true, notification: { type: 'success', msg: '', title: '' } };
  if (!value) {
    response.isValid = false;
    response.notification.type = 'error';
    response.notification.msg = 'Value must be inserted';
    response.notification.title = 'Requested Value';
  } else if (value.length < 10) {
    response.isValid = false;
    response.notification.type = 'error';
    response.notification.msg = 'Value must have 10+ characters';
    response.notification.title = 'Invalid Value';
  }
  return response;
}
function jobNameValidator ( value ) { const response = { isValid : true , notification : { type : 'success' , msg : '' , title : '' } } ; if ( ! value ) { response . isValid = false ; response . notification . type = 'error' ; response . notification . msg = 'Value must be inserted' ; response . notification . title = 'Requested Value' ; } else if ( value . length < 10 ) { response . isValid = false ; response . notification . type = 'error' ; response . notification . msg = 'Value must have 10+ characters' ; response . notification . title = 'Invalid Value' ; } return response ; }
validator function pass the user input value and should return true|false.
validator function pass the user input value and should return true|false .