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

Enhanced formatters #57

Open
5 tasks
rsimon opened this issue Dec 22, 2021 · 0 comments
Open
5 tasks

Enhanced formatters #57

rsimon opened this issue Dec 22, 2021 · 0 comments

Comments

@rsimon
Copy link
Member

rsimon commented Dec 22, 2021

The formatter API should be upgraded to the same level as in Annotorious. Instead of just allowing a single function on init, which can only output a CSS class name, we should also include:

  • the ability to return CSS style rules which get embedded into the SPANs directly (i.e. no need for a "detour" via CSS class)
  • the ability to inject data-* attributes
  • possibly the ability to append additional markup to implement labels (like the Annotorious Shape Label plugin does)
  • support for multiple formatters
  • ability to add/remove formatters dynamically
rsimon added a commit that referenced this issue Dec 16, 2023
Allow style and data attributes in formatter (#57)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant