client_id and show up in your Embedded experience.
Embedding Tight’s white-labelled UI (Tight SDK)
To add the latest release of Tight Embedded to your web app, simply add the following to your HTML<head>:
Initializing Tight Embedded
To initialize Tight Embedded, you will need to provide the following data parameters:| Field | Description | Format |
|---|---|---|
| clientId | Your app’s client_id | Reach out to api@tight.com to obtain |
| accessToken | Your user’s access_token | Received when Registering a User |
| showAnimations | Whether elements show be animated as they load | Boolean; defaults to true |
📘 Mobile browser support To render the mobile version of Tight Embedded in your mobile web app, simply addviewport: "mobile"to the data parameters:Note: if you would like Tight to auto-detect whether it should render the desktop or mobile viewport, setviewport: "auto".
Embedding Specific Components
The Embedded experience allows you to embed your choice of Tight components into your app wherever you feel best suits your users. To embed a component, you will need to provide anelementId parameter and the name of the component that you wish to embed by simply invoking the following line of JavaScript, providing the HTML id of the element you wish to render it under, the name of the component you wish to embed, and an options object specific to the component.
📘 Read-Only View Sometimes, you’ll want to limit a user’s ability to make changes. You can do this by setting theuserRolewhen creating an account, but for more fine-grained control, you can disable their ability to make changes on a per-screen basis with thereadOnlyoption. Set the option totruewhen callingHurdlr.renderScreenon the screen you want to be read-only.JavaScript
Embedding a Specific Release
Tight Embedded follows a semantic versioning numbering scheme,major.minor.patch. To use a specific release version , you can replacelatest with the version number you wish to use. Thus, to use version 1.2, embed:
HTML
📘 Note In your sandbox environment, we generally recommend using: