code: public function clientValidateAttribute($model, $attribute, $view)
      {
          if ($this->range instanceof \Closure) {
              $this->range = call_user_func($this->range, $model, $attribute);
          }
  
          ValidationAsset::register($view);
          $options = $this->getClientOptions($model, $attribute);
  
          return 'yii.validation.range(value, messages, ' . json_encode($options, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE) . ');';
      }
docs: {@inheritdoc}