mcamac / react-text-annotate

React components for interactively highlighting parts of text.
https://mcamac.github.io/react-text-annotate
MIT License
134 stars 52 forks source link

[Question] Is it possible to stop user annotate of text by passing prop #9

Closed Akshay090 closed 4 years ago

Akshay090 commented 4 years ago

can we pass a prop like stopAnnotate={false} so that the users dont be able to annotate the text themself, the annotation be only done by the json data received from server

mcamac commented 4 years ago

Yep - see the "simple controlled" example in the README. If you pass value but not onChange, user interaction won't do anything