Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add options (classes) to lists #452

Open
3 tasks done
jozo opened this issue Feb 24, 2022 · 0 comments
Open
3 tasks done

How to add options (classes) to lists #452

jozo opened this issue Feb 24, 2022 · 0 comments
Labels
question Further information is requested

Comments

@jozo
Copy link

jozo commented Feb 24, 2022

I'm using Wagtail and I would like to add to Draftail the possibility to mark items in a list as "pluses" or "minuses". Then the li element would have a class with the value "plus" or "minus". What is the best way to achieve that?

Based on docs I think the only option is to create a new entity. However, I don't want to re-implement all the functionality that the default list entity has.

I imagine li element would have a tooltip similarly as in this example in docs. In the tooltip, there would be checkboxes with classes (plus, minus, etc.). How to do it?

Which terms did you search for in the docs, issues, Stack Overflow?

  • In the https://www.draftail.org/ documentation I searched for: I read everything in section Introduction and Guides
  • In the issues / pull requests, I searched for: class
  • In Stack Overflow, I searched for: draftail (read titles of all 66 questions and checked some questions)
@jozo jozo added the question Further information is requested label Feb 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant