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

Options to Search "Hidden" Values #16436

Closed
ubergraham opened this issue Mar 10, 2015 · 3 comments
Closed

Options to Search "Hidden" Values #16436

ubergraham opened this issue Mar 10, 2015 · 3 comments
Milestone

Comments

@ubergraham
Copy link

Would love an option to have the search include values that might not be displayed -- for example, if you have the word Kansas, typing "KS" would still bring up Kansas.

Kansas
@LeaVerou
Copy link
Owner

I like this!

(also related to #593 )

@vlazar
Copy link
Collaborator

vlazar commented Feb 15, 2016

To everyone interested in differentiating value from displayed text, aka key/value feature, aka array of objects feature.

The code is ready and it's almost 100% backward compatible. To ensure everything working fine for you we need your help with testing it in the wild before it's released. See this PR: Separate label/value for each suggestion in list

@vlazar
Copy link
Collaborator

vlazar commented Mar 12, 2016

Separate label/value is landed #16866
It is also possible to initialize list with separate label/value via <datalist> or <ul>.

Read about different label and value at the end of Basic usage section and about new data method at the end of Extend section.

You can use suggestion objects with label/value and have as many additional properties as you like. Changing filter to filter by additional hidden properties is trivial.

@vlazar vlazar closed this as completed Mar 12, 2016
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

3 participants