Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

Realharon
Copy link

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 added 3 commits October 21, 2016 03:55
Added support for use callback function instead of dictionary in
options.params. This need for dynamically set custom Ajax parameters.
Added support for use callback function instead of dictionary in
options.params. This need for dynamically set custom Ajax parameters.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.