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
{{ message }}
This repository has been archived by the owner on Jul 2, 2018. It is now read-only.
I needed some values to be transformed directly, even though there is no matching element. i.e: to make uppercase. To solve that implement the toUpperCase in a 'beforeUseConverter' function, and I just added 'setValue' to 'beforeUseConverter' on the source code
$.Autocompleter.prototype.beforeUseConverter = function(s, a, b) {
s = this.getValue();
var converter = this.options.beforeUseConverter;
if ($.isFunction(converter)) {
s = converter(s, a, b);
}
this.setValue(s); //added setValue
return s;
};
But maybe there would be nice to have a 'transformAfterUse' option or something like that
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I needed some values to be transformed directly, even though there is no matching element. i.e: to make uppercase. To solve that implement the toUpperCase in a 'beforeUseConverter' function, and I just added 'setValue' to 'beforeUseConverter' on the source code
$.Autocompleter.prototype.beforeUseConverter = function(s, a, b) {
s = this.getValue();
var converter = this.options.beforeUseConverter;
if ($.isFunction(converter)) {
s = converter(s, a, b);
}
this.setValue(s); //added setValue
return s;
};
But maybe there would be nice to have a 'transformAfterUse' option or something like that
The text was updated successfully, but these errors were encountered: