PrizmDoc v13.3 - Updated
Module: form-tools
API Reference > PrizmDoc E-Signature Viewer API > Module: form-tools

Module: form-tools

Manages the form tools. Selecting a tool determines how the mouse interacts with the document. For example, selecting the Pan tool allows the user to scroll the document by clicking on it and dragging the mouse. Selecting the Signature tool allows the user to use the mouse to create a signature field. After a signature field is added, the Pan tool is automatically selected. The user can click a field tool twice to put it into "sticky" state so that the tool remains selected after adding a field.

Example
var FormTools = require('form-tools.js');

// a generic Viewer constructor
function Viewer(opts) {
    var myFormTools = FormTools(this, {
        elem: document.getElementById('myFormTools')
    });
}

(require("form-tools"))(viewer, options)

Creates the form tools UI module.

Parameters:
Name Type Description
viewer Core

The core viewer to which the module will attach.

options Object

An options object.

Properties
Name Type Description
elem HTMLElement

The element in which the module UI will be inserted.

Methods

destroy()

Destroys the module.