jQuery-Autocomplete icon indicating copy to clipboard operation
jQuery-Autocomplete copied to clipboard

New feature for options.params

Open Realharon opened this issue 9 years ago • 0 comments

Added support for use callback function instead of dictionary in options.params. This need for dynamically set custom Ajax parameters.

Example:

$(el).autocomplete({
    params : function() {
        return {
            foo : this.dataset.foo,
            bar : this.dataset.bar,
            baz : this.id,
            val : this.value
            ... etc. as you wish ...
        };
    }
});

Realharon avatar Oct 21 '16 00:10 Realharon