Skip to content

buttons on top at widget #233

Answered by rsimon
jwijffels asked this question in Q&A
Jul 13, 2022 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

Hi,

Yes, exactly. You'd need an editor widget plugin for this. Unfortunately, the plugin API is frankly quite clunky. Things are still fairly easy as long as you are inside a React project. But I assume you'd need a plain JS solution?

Anyways, I have some React code for a similar widget here:
https://github.com/machines-reading-maps/mrm-recogito-ui/blob/main/src/widgets/ClassifyWidget.jsx

(It's not exactly the same as the screenshot from Recogito. But does something similar: three buttons that act as a multiple-choice selection; using classifying as Web Annotation purpose.)

There's also matchin Formatter function which colors annotation accordingly, and a CSS stylesheet for the buttons.

A…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by jwijffels
Comment options

You must be logged in to vote
3 replies
@rsimon
Comment options

@jwijffels
Comment options

@rsimon
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants