$clientValidate public property
An anonymous function or the name of a model class method that returns the client validation code. The signature of the method should be like the following: function foo($attribute, $params)
{
return "javascript";
}
where $attribute refers to the attribute name to be validated. Please refer to clientValidateAttribute() for details on how to return client validation code.
public string|Closure $clientValidate = null