annotator.ui package

annotator.ui.main([options])

A module that provides a default user interface for Annotator that allows users to create annotations by selecting text within (a part of) the document.

Example:

app.include(annotator.ui.main);

param Object options

options.element

A DOM element to which event listeners are bound. Defaults to document.body, allowing annotation of the whole document.

options.editorExtensions

An array of editor extensions. See the ~annotator.ui.editor.Editor documentation for details of editor extensions.

options.viewerExtensions

An array of viewer extensions. See the ~annotator.ui.viewer.Viewer documentation for details of viewer extensions.

Built with LogoFlowershow