# Class ValidateOptions

Common validation options that can be specified for all validation methods.

  DataTables\Ext
  DataTables\Editor\ValidateOptions

Namespace: DataTables\Editor
Located at Editor/ValidateOptions.php

Methods summary
`public` | # `__construct( $opts = null )`
`public `DataTables\Editor\ValidateOptions`|string` | # `message( string $msg = null )` Get / set the error message to use if validation fails Get / set the error message to use if validation fails #### Parameters $msg Error message to use. If not given, the currently set message will be returned. #### Returns `DataTables\Editor\ValidateOptions`|string Self if setting, message if getting.
`public `DataTables\Editor\ValidateOptions`|boolean` | # `allowEmpty( boolean $empty = null )` Get / set the field empty option Get / set the field empty option #### Parameters $empty `false` if the field is not allowed to be empty. `true` if it can be. #### Returns `DataTables\Editor\ValidateOptions`|boolean Self if setting, current value if getting.
`public `DataTables\Editor\ValidateOptions`|boolean` | # `optional( boolean $optional = null )` Get / set the field optional option Get / set the field optional option #### Parameters $optional `false` if the field does not need to be submitted. `true` if it must be. #### Returns `DataTables\Editor\ValidateOptions`|boolean Self if setting, current value if getting.

Methods inherited from DataTables\Ext
`_getSet(), _propExists(), _readProp(), _writeProp(), inst(), instantiate()`