Coder Social home page Coder Social logo

Multiselection about stimulus-autocomplete HOT 7 OPEN

afcapel avatar afcapel commented on June 11, 2024
Multiselection

from stimulus-autocomplete.

Comments (7)

pruzicka avatar pruzicka commented on June 11, 2024 1

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.

pruzicka avatar pruzicka commented on June 11, 2024

Interesting. So that would add multiple ids, as array, to hidden field?

from stimulus-autocomplete.

kstratis avatar kstratis commented on June 11, 2024

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.

Senegal avatar Senegal commented on June 11, 2024

hi, @kstratis, @pruzicka ! Any updates on it?

from stimulus-autocomplete.

pruzicka avatar pruzicka commented on June 11, 2024

hi, @kstratis, @pruzicka ! Any updates on it?

Not from me mate, I've said I like it.

from stimulus-autocomplete.

kstratis avatar kstratis commented on June 11, 2024

@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.

afcapel avatar afcapel commented on June 11, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.