ValueChange Class
Provides the implementation for the synthetic valuechange
event. This class
isn't meant to be used directly, but is public to make monkeypatching possible.
Usage:
YUI().use('event-valuechange', function (Y) {
Y.one('#my-input').on('valuechange', function (e) {
Y.log('previous value: ' + e.prevVal);
Y.log('new value: ' + e.newVal);
});
});
Methods
Properties
POLL_INTERVAL
Number
static
Interval (in milliseconds) at which to poll for changes to the value of an
element with one or more valuechange
subscribers when the user is likely
to be interacting with it.
Default: 50
TIMEOUT
Number
static
Timeout (in milliseconds) after which to stop polling when there hasn't been any new activity (keypresses, mouse clicks, etc.) on an element.
Default: 10000