class Form.Observer
Description
An Abstract.TimedObserver subclass that watches for changes to a form.
The callback is triggered when the form changes — e.g., when any of its fields' values
changes, when fields are added/removed, etc.; anything that affects the serialized
form of the form (see Form.serialize).
Superclass
Methods
Constructor
new Form.Observer(element, frequency, callback)
-
element(String|Element) – The element of the form to watch. Can be an element instance or an ID. -
frequency(Number) – The frequency, in seconds -- e.g., 0.33 to check for changes every third of a second. -
callback(Function) – The callback to trigger when the form changes.
Creates a Form.Observer.