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

Get options array from TypeaheadSelector? #139

Open
juanmnl opened this issue Oct 19, 2015 · 1 comment
Open

Get options array from TypeaheadSelector? #139

juanmnl opened this issue Oct 19, 2015 · 1 comment
Labels

Comments

@juanmnl
Copy link

juanmnl commented Oct 19, 2015

Is there a simple way of getting the options array from the TypeaheadSelector sub-component (the results that print in the dropdown), so i can use them and filter another view?
Sure I'm missing something in the docs

@trshafer
Copy link
Collaborator

Hey @juanmnl , there is not currently an official way. It's stored in state.visible. Technically it's available via this.refs.Typeahead.state.visible, assuming your component has ref Typeahead. But I wouldn't recommend that. I'd accept a pull request that exposes state.visible in a component function.

@fmoo fmoo added the question label Mar 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants