summaryrefslogtreecommitdiff
path: root/framework/Web/UI
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web/UI')
-rw-r--r--framework/Web/UI/WebControls/TBaseValidator.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/framework/Web/UI/WebControls/TBaseValidator.php b/framework/Web/UI/WebControls/TBaseValidator.php
index 3b2f0ec6..5917f313 100644
--- a/framework/Web/UI/WebControls/TBaseValidator.php
+++ b/framework/Web/UI/WebControls/TBaseValidator.php
@@ -647,12 +647,30 @@ class TValidatorClientScript extends TComponent
}
/**
+ * @param boolean true to revalidate when the control to validate changes value.
+ */
+ public function setObserveChanges($value)
+ {
+ $this->_options->add('ObserveChanges', TPropertyValue::ensureBoolean($value));
+ }
+
+ /**
+ * @return boolean true to observe changes.
+ */
+ public function getObserveChanges()
+ {
+ $changes = $this->_options->itemAt('ObserveChanges');
+ return is_null($changes) ? true : $changes;
+ }
+
+ /**
* @return array list of client-side event code.
*/
public function getOptions()
{
return $this->_options->toArray();
}
+
/**
* Ensure the string is a valid javascript function. If the string begins