/**
  * Returns the attributes to be rendered as javascript.
  * This method overrides the parent's implementation.
  * @return ArrayObject attributes to be rendered
  */
 protected function getJsOptions()
 {
     $options = parent::getJsOptions();
     if ($this->isClientScriptEnabled()) {
         $options['minimumvalue'] = $this->getMinValue();
         $options['maximumvalue'] = $this->getMaxValue();
         $options['type'] = $this->getValueType();
         $dateFormat = $this->getDateFormat();
         if (strlen($dateFormat)) {
             $options['dateformat'] = $dateFormat;
         }
     }
     return $options;
 }
 /**
  * Get a list of options for the client side javascript group validation.
  * @return array list of options. 
  */
 protected function getJsOptions()
 {
     $options = parent::getJsOptions();
     foreach ($this->events as $controlID => $event) {
         $control = $this->Parent->findObject($controlID);
         if (!is_null($control)) {
             $options['target'] = $control->ClientID;
         }
     }
     return $options;
 }
 /**
  * Get a list of options for the client-side javascript validator
  * @return array list of options for the validator 
  */
 protected function getJsOptions()
 {
     $options = parent::getJsOptions();
     $options['validationexpression'] = $this->getRegularExpression();
     return $options;
 }
 /**
  * Get a list of options for the client-side javascript validator
  * @return array list of options for the validator 
  */
 protected function getJsOptions()
 {
     $options = parent::getJsOptions();
     $clientJs = $this->getClientValidationFunction();
     if (strlen($clientJs)) {
         $options['clientvalidationfunction'] = $clientJs;
     }
     return $options;
 }
 /**
  * Returns the attributes to be rendered.
  * This method overrides the parent's implementation.
  * @return ArrayObject attributes to be rendered
  */
 protected function getJsOptions()
 {
     $options = parent::getJsOptions();
     $min = $this->getMinSelection();
     $max = $this->getMaxSelection();
     if ($min != -INF) {
         $options['min'] = $min;
     }
     if ($max != INF) {
         $options['max'] = $max;
     }
     $required = $this->getRequiredSelections();
     if (strlen($required)) {
         $options['required'] = $required;
     }
     $id = $options['controltovalidate'] . '[]';
     $options['selector'] = $id;
     return $options;
 }
 /**
  * Get a list of options for the client-side javascript validator
  * @return array list of options for the validator 
  */
 protected function getJsOptions()
 {
     $options = parent::getJsOptions();
     $options['initialvalue'] = $this->getInitialValue();
     return $options;
 }
 /**
  * Get a list of options for the client-side javascript validator
  * @return array list of options for the validator 
  */
 protected function getJsOptions()
 {
     $options = parent::getJsOptions();
     $name = $this->getControlToCompare();
     if (strlen($name)) {
         $id = $this->getTargetControl($name)->getClientID();
         $options['controltocompare'] = $id;
         $options['controlhookup'] = $id;
     }
     $value = $this->getValueToCompare();
     if (strlen($value)) {
         $options['valuetocompare'] = $value;
     }
     $operator = $this->getOperator();
     if ($operator !== 'Equal') {
         $options['operator'] = $operator;
     }
     $options['type'] = $this->getValueType();
     $dateFormat = $this->getDateFormat();
     if (strlen($dateFormat)) {
         $options['dateformat'] = $dateFormat;
     }
     return $options;
 }