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);
Parameters: options (Object) – -
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
Editor
documentation for details of editor extensions.
-
options.
viewerExtensions
¶ An array of viewer extensions. See the
Viewer
documentation for details of viewer extensions.
-