Spectre: Suggestion: dropdown with search

Created on 1 May 2017  路  1Comment  路  Source: picturepan2/spectre

For first: wow! contratulations! spectre seem to be a really nice piece of code :)
My suggestion is to add a dropdown with search like here https://semantic-ui.com/modules/dropdown.html scroll to (search selection). Though I'm not sure if it's even possible with CSS, but spectre shows that everything seems possible :+1:

Most helpful comment

I think your need is https://picturepan2.github.io/spectre/components.html#autocomplete
You'd need to combine that with some JS in order to facilitate the data backing the drop down though. AFAIK there's no way to link up a <select> with a textbox outside of JS.

I was a little bit bored so here's an example of what you'd have to do in JS / a framework of your choice: https://plnkr.co/edit/UM67VywjsGmRvbxv8I5D?p=preview

>All comments

I think your need is https://picturepan2.github.io/spectre/components.html#autocomplete
You'd need to combine that with some JS in order to facilitate the data backing the drop down though. AFAIK there's no way to link up a <select> with a textbox outside of JS.

I was a little bit bored so here's an example of what you'd have to do in JS / a framework of your choice: https://plnkr.co/edit/UM67VywjsGmRvbxv8I5D?p=preview

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mp4096 picture mp4096  路  3Comments

mtnra picture mtnra  路  5Comments

elias-garcia picture elias-garcia  路  4Comments

picturepan2 picture picturepan2  路  3Comments

9Emi picture 9Emi  路  3Comments