SDK Constants
This guide provides developers with an understanding of the constants exposed in DottedSign Embedded Signing SDK. These constants represent fixed values used throughout the SDK, providing a way to reference values without hardcoding them into your application.
Currently, there are two constant types: EMBED_TYPE
and ELEMENTS_ID
. Each constant type offers several items for users to utilize. You can reference them using the following syntax:
window.dottedSign.constants.<CONSTANT_TYPE>.<CONSTANT_NAME>
EMBED_TYPE
EMBED_TYPE
EMBED_TYPE
represents the various embedding modes provided by DottedSign Embedded Signing SDK.
Constant Name | Description |
---|---|
CREATE | The mode to create a task from scratch, either using a template or uploading documents. |
ELEMENTS_ID
ELEMENTS_ID
ELEMENTS_ID
specifies the HTML elements that will be displayed in the user interface. Its primary purpose is to allow users to toggle components, for example, using the hideElement() method.
CREATE
CREATE
The following ELEMENTS_ID
constants are available for use in the CREATE
embedding mode, corresponding to the UI components shown below.
Constant Name | Description |
---|---|
CREATE_FROM_TEMPLATE | |
CREATE_ATTACHMENTS | |
CREATE_PREVIEW | |
CREATE_CONFIRM_LABEL |
Updated 16 days ago