Skip to content

[RFR] Update remoteComplete API for better configurability#592

Merged
fzaninotto merged 1 commit intomasterfrom
search_query
Aug 5, 2015
Merged

[RFR] Update remoteComplete API for better configurability#592
fzaninotto merged 1 commit intomasterfrom
search_query

Conversation

@fzaninotto
Copy link
Copy Markdown
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
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