PrizmDoc Viewer v13.12 Release - Updated
API Reference / E-Signature Controls / Module: form-tools
In This Topic
    Module: form-tools
    In This Topic

    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.


    Documentation generated by JSDoc 3.5.5 on Tue Mar 31 2020 08:35:45 GMT-0400 (Eastern Daylight Time)