Coder Social home page Coder Social logo

Need help with the UI about django-tagulous HOT 3 CLOSED

richielo avatar richielo commented on August 16, 2024
Need help with the UI

from django-tagulous.

Comments (3)

radiac avatar radiac commented on August 16, 2024

If you're not seeing the autocomplete dropdown then you may not have the css and javascript loaded; make sure that your form media is added to your header; for example: https://github.com/radiac/django-tagulous/blob/develop/example/example/templates/example/index.html#L3-L8

Once you've got that you should get the autocomplete dropdown, and can select tags from there. However, typing a comma will always create a new tag; if you want to create a tag with a comma in it, you will need to wrap the tag with quote marks, eg "tag, with, commas"

from django-tagulous.

richielo avatar richielo commented on August 16, 2024

I tried adding the the lines you highlighted in the template but it didn't work. What I meant is how do I replicate the behaviour like in the first section of the demo, which when I press enter it becomes a tag with a cross to remove it. Right now, it's just a command separated string in the UI.

sc

from django-tagulous.

radiac avatar radiac commented on August 16, 2024

Sorry for the delay, missed your reply. This looks like your javascript isn't loading properly, but there could be many reasons for that. Use your web browser's inspector to check that the files are included in the html source (if they're not it indicates a problem with your form or template), and that they're downloaded successfully (it might be an issue with your static files).

from django-tagulous.

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.