Class ValidateOptions
Common validation options that can be specified for all validation methods.
-
DataTables\Ext
-
DataTables\Editor\ValidateOptions
Methods summary
public
|
|
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
|
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
|
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
|