Prado\Web\UI\WebControls\TCustomValidator::getClientScriptOptions PHP Method

getClientScriptOptions() protected method

Returns an array of javascript validator options.
protected getClientScriptOptions ( ) : array
return array javascript validator options.
    protected function getClientScriptOptions()
    {
        $options = parent::getClientScriptOptions();
        if (($clientJs = $this->getClientValidationFunction()) !== '') {
            $options['ClientValidationFunction'] = $clientJs;
        }
        return $options;
    }