PrizmDoc v13.4 - Updated
Module: data-persist
API Reference > PrizmDoc E-Signature Viewer API > Module: data-persist

Module: data-persist

Provides the ability to store state data in the browser's local storage.

Note: this module is an example of a persistence module. It presents potential security concerns, in that it may allow users to store sensitive information in non-secure browser storage. Please make sure this module fits your security model before using it in production.

(require("data-persist"))(viewer)

Created the data persistence module.

Parameters:
Name Type Description
viewer Core

The core viewer to which the module will attach.

Listens to Events:
Example
var DataPersist = require('data-persist.js');

// a generic Viewer constructor
var myDataPersist = DataPersist(viewer);

Methods

destroy()

Destroys the module.