[annotator-dev] Hide annotator and reload annotations
riccardo.tasso at gmail.com
Thu Feb 13 16:06:34 UTC 2014
Can't I destroy all the objects related to annotator as if I never loaded
it? This could be associated to the "off" button of my application.
The "on" button will be associated to annotator loading, as if it was
created for the first time.
2014-02-13 16:55 GMT+01:00 Steph Skardal <steph at endpoint.com>:
> On 02/13/2014 10:03 AM, Riccardo Tasso wrote:
> Hi all,
> I'm almost finished integrating annotator to my web application, but
> I'm investigating on the following funtionalities.
> First of all I'd like to hide all the annotator related stuff
> (annotations, higliting, ...) to offer the reader a clean view. How is
> possibile hide or destroy the annotator?
> After the reading I'd like to re-enable annotator, reloading new
> annotations from store. How can I reload annotations without reloading the
> whole page?
> Hi Riccardo,
> From what I could tell, there is no way to toggle the readOnly option
> dynamically after the annotator has been loaded.
> However, I did accomplish the method of reloading annotations (for another
> use case) by executing the Store._onLoadAnnotationsMethod (
> upon a certain onclick.
> Also, of note, I was able to loop through the annotations and temporarily
> remove annotations (
> My use case for this functionality is a bit different from what you intend
> to do, but it does contain the basics of loading additional annotations and
> deleting annotations on the fly.
> annotator-dev mailing list
> annotator-dev at lists.okfn.org
> Unsubscribe: https://lists.okfn.org/mailman/options/annotator-dev
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the annotator-dev