Skip to content

Partial search inside specific sources using : prefix, Ex ":users" #201

Closed
@elegos

Description

@elegos

Hello! I'm trying out this plugin and so far, so good. I have a question though: is it possible to disable an ajax source depending on the query string?

The idea is to let the user search for users only if the query string contains "user:whatever". I've tried using a function as per ajax parameter, setting the return's url to false, null, the entire return to null, false, whatever.... but Typeahead just stops working... My workaround is to set the data's query to an empty string, but still the call is fired and I don't like it.

Any hint?

Thanks 👍

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions