Skip to main content

API reference

new MobbSign(options)​

Creates the viewer and renders it in options.root. Returns a Promise that resolves to the configured instance. The options are described in Configuration.

new MobbSign(options).then((mobbsign) => mobbsign.load(documentId));

load(documentId)​

Loads a document of MobbSign Server in the viewer.

ParameterTypeDescription
documentIdstringIdentifier of the document in MobbSign Server.

Returns a Promise that resolves when the document has been loaded. Wait for it before loading another document:

mobbsign.load(firstId).then(() => mobbsign.load(secondId));