GithubHelp home page GithubHelp logo

Comments (4)

yairEO avatar yairEO commented on May 23, 2024 1

You can use a class attribute just as well as an id for "identifying a specific Tagify instance", why do you need id specifically?

Adding your own attributes is not a "hassle" at all can there is no point of me doing it for the developers as it almost won't "save" you any code at all, but for a fact it will inflate Tagify's source code, which I am trying to keep clean.

It's as easy as this:

// instantiate Tagify as you would do normally
const tagify = new Tagify(...)

// add `id` property to the `scope` which is the `<Tags>` wrapper
tagify.DOM.scope.id = 'foo'

from tagify.

awesome1128 avatar awesome1128 commented on May 23, 2024

You're right.
I am trying to use id attribute in Tagify next.js, but no id attribute.
I 100% don't understand why @yairEO didn't add it.
I am still trying to understand why.
Hope @yairEO adds id attritube asap.
Thank you so much!

from tagify.

Git002 avatar Git002 commented on May 23, 2024

yeah, I did my own implementation of adding an id to each Tagify instance I created through my components. Was a bit of hassle but 🤷‍♂️.... ofcourse that would be a nice feature to be added. I hope @yairEO adds that too

from tagify.

yairEO avatar yairEO commented on May 23, 2024

@awesome1128 for "ASAP" situations, payment for changes can certainly help

from tagify.

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.