...
Code Block | ||
---|---|---|
| ||
export const MANIFEST = { manifest: { statuses: [ { id: "group_status", type: "Group", display: "Example Group Status", order: 0, items: [ { id: "nested_string_status_1", type: "String", display: "Example String Status 1", default: "a default value", order: 0 }, { id: "nested_string_status_2", type: "String", display: "Example String Status 2", default: "a default value", order: 1 } ] } ], controls: [], settings: [] } } |
Set a group status value from the SDK like this:
Code Block | ||
---|---|---|
| ||
// File: your-code.js
const { Gumband } = require('@deeplocal/gumband-nodejs-sdk')
// or import { Gumband } from '@deeplocal/gumband-nodejs-sdk'
const gb = new Gumband(EXHIBIT_TOKEN, EXHIBIT_ID, PATH_TO_MANIFEST);
function updateStatus() {
gb.setStatus("nested_string_status_1", "new status value");
} |
...
Exhibit Control Types
Single
...