/** * Updates a formfield with the additional metadata specified by this field * * @param FormField $field */ protected function updateFormField($field) { parent::updateFormField($field); $field->setAttribute('data-rule-email', true); if ($this->Placeholder) { $field->setAttribute('placeholder', $this->Placeholder); } }
/** * Updates a formfield with the additional metadata specified by this field * * @param FormField $field */ protected function updateFormField($field) { parent::updateFormField($field); if ($this->MinValue) { $field->setAttribute('data-rule-min', $this->MinValue); } if ($this->MaxValue) { $field->setAttribute('data-rule-max', $this->MaxValue); } }
/** * Updates a formfield with the additional metadata specified by this field * * @param FormField $field */ protected function updateFormField($field) { parent::updateFormField($field); if ($this->MinLength) { $field->setAttribute('data-rule-minlength', $this->MinLength); } if ($this->MaxLength) { $field->setAttribute('data-rule-maxlength', $this->MaxLength); } if ($this->Placeholder) { $field->setAttribute('placeholder', $this->Placeholder); } }
/** * Updates a formfield with the additional metadata specified by this field * * @param FormField $field */ protected function updateFormField($field) { parent::updateFormField($field); $field->setAttribute('data-rule-email', true); }