Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[RFR] Update remoteComplete API for better configurability #592

Merged
merged 1 commit into from
Aug 5, 2015

Conversation

fzaninotto
Copy link
Member

Before:

nga.field('post_id', 'reference')
    .label('Post')
    .targetEntity(post)
    .targetField(nga.field('title'))
    .remoteComplete(true, { refreshDelay: 200 })
    .permanentFilters(function(search) { return search ? { q: search } : null; })

After:

nga.field('post_id', 'reference')
    .label('Post')
    .targetEntity(post)
    .targetField(nga.field('title'))
    .remoteComplete(true, {
        refreshDelay: 200,
        searchQuery: function(search) { return { q: search }; }
    })

fzaninotto added a commit that referenced this pull request Aug 5, 2015
[RFR] Update remoteComplete API for better configurability
@fzaninotto fzaninotto merged commit 80f289e into master Aug 5, 2015
@fzaninotto fzaninotto deleted the search_query branch August 5, 2015 21:28
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant