Git Product home page Git Product logo

Comments (6)

aehlke avatar aehlke commented on August 25, 2024

The ideal way is to call createTag instead of modifying the existing field. But if you must, can I suggest destroying the widget and re-instantiating it to refresh?

from tag-it.

aehlke avatar aehlke commented on August 25, 2024

Can you give me a use case for this? It seems like it might be unnecessary complexity. Going to close this for now unless someone convinces me otherwise, sorry.

from tag-it.

codeling avatar codeling commented on August 25, 2024

I might have a use case:
Environment: I have a list of items.
Use case: I want to edit one item.
For that I use a jquery dialog, which is dynamically filled with the values from the item to be edited.
Now to update the tag list with the values from the current item, ideally I would just have to fill the input and then call some update function, as described above.
I guess it would also be fine for that use case to destroy the widget and re-instantiating it - at the moment however I don't know how I would go about doing that (I am not so well-versed in jquery (ui) and javascript).
I thought of just calling tagit(...) again, but that doesn't seem to work - the tag list keeps the old values ...

from tag-it.

codeling avatar codeling commented on August 25, 2024

@aehlke I know I'm reviving zombies here, but maybe you got a hint for me?

from tag-it.

codeling avatar codeling commented on August 25, 2024

@aehlke never mind, in the meantime I worked around by removing and adding the tags with the provided removeAll/createTag methods!

from tag-it.

overallduka avatar overallduka commented on August 25, 2024

This is necessary, thanks codeling by the removeAll/createTag solution.

from tag-it.

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.