Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Suggestion: Arbitrary objects passed to Search results? #1670

Closed
adamdonahue opened this issue May 11, 2017 · 1 comment
Closed

Suggestion: Arbitrary objects passed to Search results? #1670

adamdonahue opened this issue May 11, 2017 · 1 comment

Comments

@adamdonahue
Copy link

adamdonahue commented May 11, 2017

I think it'd be useful to allow a user to pass an arbitrary set of objects to the Search widget (and perhaps, with it, a selector of some sort).

It seems from what I've read that Search conflates title with the result identifiers. So if I have:

[
    {
        id: 1,
        title: 'Bob'
    },
    {
        id: 2,
        title: 'Alice'
    }
]

The behavior I'd like is that when searching on title, when an item is (or multiples are) selected I get associated IDs. I tried passing id with the results array as per above but the component complains that results is invalid. What am I missing here?

@adamdonahue
Copy link
Author

Self-closing. I suppose this is more easily accomplished via a Dropdown component.

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

No branches or pull requests

1 participant