Comments (7)
I like it. I don't use this controller right now in a way that I would utilize it right away but may be somebody would. Tagging is good example.
from stimulus-autocomplete.
Interesting. So that would add multiple ids, as array, to hidden field?
from stimulus-autocomplete.
That is correct. Think about tagging for example; A user may wish to flag his post using one of the tags available in the database. Github does something similar with Labels I think.
So that would add multiple ids, as array, to hidden field?
That's the concept for now, yes. I still need to figure out how to style this thing but that's the idea.
Each selected option should be removable and there should also be a master 'Cancel' button on the far right which would remove all selected options at once.
I think the groundwork is already done for this. What do you think?
from stimulus-autocomplete.
hi, @kstratis, @pruzicka ! Any updates on it?
from stimulus-autocomplete.
Not from me mate, I've said I like it.
from stimulus-autocomplete.
@Senegal I did some thinking over this and turns out it may not be as trivial as initially expected.
I currently don't have the time to implement this let alone test and iterate.
I'm leaving this open in case anybody else wants to pick it up.
FWIW I went with this library for now: https://github.com/snapappointments/bootstrap-select
UPDATE
Another great option which I read about this week in javascript weekly seems to be tagify.
from stimulus-autocomplete.
I've started spiking this on the multiselection branch. I don't think the multiselection itself will be too difficult to implement, but we'll probably have to provide some styles with sensible defaults so it's easy to use.
from stimulus-autocomplete.
Related Issues (20)
- Provide default styles
- Failed to resolve module specifier "stimulus-autocomplete" HOT 3
- Prefilled form HOT 1
- Additional event on select HOT 3
- How to fetch data on focus? HOT 11
- Make the query paramater name `q` customizable HOT 2
- error event doesn't fire on 400+ response HOT 1
- Auto-select/highlight the first result on "data load ended" HOT 2
- Suggestion: Allow to use local HTML instead of fetching from the server HOT 3
- Prevent Lighthouse Aria warnings HOT 1
- Data is not being Filtered. HOT 1
- Accessibility
- Feature improve: When mouse move on an option item, it should become the current selected option item. HOT 4
- data-autocomplete-query-param-value not working HOT 4
- New release? HOT 2
- Set "active" class based on what result the user's mouse is over HOT 1
- Combobox with results is hidden when a user goes to another Browser tab HOT 1
- Pre-selected value HOT 1
- Combo Box with client-side fuzzy finder with a static list options
- Question: Handle a 429 Response?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stimulus-autocomplete.