Prado\Web\UI\WebControls\TRangeValidator::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();
        $options['MinValue'] = $this->getMinValue();
        $options['MaxValue'] = $this->getMaxValue();
        $options['DataType'] = $this->getDataType();
        $options['StrictComparison'] = $this->getStrictComparison();
        if (($dateFormat = $this->getDateFormat()) !== '') {
            $options['DateFormat'] = $dateFormat;
        }
        return $options;
    }