You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating filters with complex UI elements (for instance date-time input which consists of two separate input fields, of when the text that was entered has to be processed before it can be used in a filter (for instance convert the input of a date field into a JavaScript Date object) it would be nice to have alternative ways to get the value from the input or to attach the on change event on a different way than the default way.
In order to accomplish this, I have created the following functions:
function getValue($element, p) {
if ($.isFunction(p.getValue)) {
return p.getValue($element, p);
}
return $element.val();
}
function bindChange($element, p, change) {
if ($.isFunction(p.bindChange)) {
return p.bindChange($element, p, change);
}
return $element.bind('change', change);
}
These functions can be used to replace the calls to
When creating filters with complex UI elements (for instance date-time input which consists of two separate input fields, of when the text that was entered has to be processed before it can be used in a filter (for instance convert the input of a date field into a JavaScript
Date
object) it would be nice to have alternative ways to get the value from the input or to attach the on change event on a different way than the default way.In order to accomplish this, I have created the following functions:
These functions can be used to replace the calls to
into
and the binding of the change events like
into
Of course the values
getValue
andbindChange
must be copied from the searchGrid options during the call in whichjqFilter
is created.The text was updated successfully, but these errors were encountered: