Skip to main content

Bridge.Companywide

Allows the user to access Companywide keys & values from inside a slide.

Related links:

.getSlideValues()

Returns an array of the current slide's Companywide values with keys, status and other data.

Bridge.Companywide.getSlideValues();

Returns:

[
{
active: false,
changed: false,
data: { Object },
key: "companywide_editable_1",
mime: "text/plain",
value: "Edited text",
},
{
active: false,
changed: false,
data: { Object },
key: "companywide_editable_2",
mime: "text/plain",
value: "Edited text",
},
];

.getSlideKeys()

Returns an array of the current slide's Companywide keys.

Bridge.Companywide.getSlideKeys();

Returns:

["key_1", "key_2"...]

.getWithKeys(keys)

Returns an array of Companywide values that match the keys in the keys array.

ParameterTypeDescription
keysArrayArray of keys for the values to retrieve
Bridge.Companywide.getWithKeys(["key_1", "key_2"]);

Returns:

[
{
active: false,
changed: false,
data: { Object },
key: "key_1",
mime: "text/plain",
value: "Edited text 1",
},
{
active: false,
changed: false,
data: { Object },
key: "key_2",
mime: "text/plain",
value: "Edited text 2",
},
];