Deck
The Deck object provides access to the Digideck's Deck state, behavior, and subscribe to deck events
Properties
id
Description
- Returns a string of the decks unique id.
Return Value: String
Code Example
digideckCore.deck.id;
organizationId
Description
- Returns a string of the decks organization unique id.
Return Value: String
Code Example
digideckCore.deck.organizationId;
subdomain
Description
- Returns subdomain of the deck's organization.
Return Value: String
Code Example
digideckCore.deck.subdomain;
name
Description
- Returns the name of the deck.
Return Value: String
Code Example
digideckCore.deck.name;
isActive
Description
- Returns a boolean of the decks active state. Returns true if deck is ready.
Return Value: Boolean
Code Example
digideckCore.deck.isActive;
logo
Description
- Returns the URL for the deck logo.
Return Value: String
Code Example
digideckCore.deck.logo;
invertedLogo
Description
- Returns the inverted logo of a deck.
Return Value: String
Code Example
digideckCore.deck.invertedLogo;
element
Description
- Returns the deck HTML element.
Return Value: HTML Element
Code Example
digideckCore.deck.element;
ddLiveDeckDomain
Description
- Returns the DD LIVE deck domain attribute.
Return Value: String
Code Example
digideckCore.deck.ddLiveDeckDomain;
ddLiveSocketConnectionString
Description
- Returns the DD LIVE socket connection string attribute.
Return Value: String
Code Example
digideckCore.deck.ddLiveSocketConnectionString;
ddLivePublicPath
Description
- Returns the DD LIVE public path attribute..
Return Value: String
Code Example
digideckCore.deck.ddLivePublicPath;
ddLiveApiPath
Description
- Returns the DD LIVE API path attribute.
Return Value: String
Code Example
digideckCore.deck.ddLiveApiPath;
isMobileLayoutsEnabled
Description
- Returns whether the deck/presentation will display a different layout for smaller screens.
Return Value: Boolean
Code Example
digideckCore.deck.isMobileLayoutsEnabled;
videoPlayerFramework
Description
- Returns Which video player framework the deck/presentation will use to display videos. Current options are jwplayer or videoJs player.
Return Value: String
Code Example
digideckCore.deck.videoPlayerFramework;
globalSlideTransitions
Description
- Returns the Deck's global slide transition configuration for the deck. This configuration allows you to set consistent transition animations across all slides in the deck.
Return Value: Object
The returned object has the following properties:
| Property | Type | Default | Description |
|---|---|---|---|
isEnabled | boolean | false | Whether global slide transitions are enabled |
animationType | string | 'none' | The type of animation to use. Valid values are: 'none', 'slide', 'fade' |
animationDirection | string | 'horizontal' | The direction of the animation. Valid values are: 'horizontal', 'vertical' |
animationDuration | number | 0.3 | The duration of the animation in seconds |
animationDelay | number | 0 | The delay before the animation starts in seconds |
animationEase | string | 'linear' | The easing function for the animation |
Code Example
// Get the current global slide transitions configuration
const transitions = digideckCore.deck.globalSlideTransitions;
// Configure global slide transitions
digideckCore.deck.globalSlideTransitions = {
isEnabled: true,
animationType: 'slide',
animationDirection: 'horizontal',
animationDuration: 0.5,
animationDelay: 0,
animationEase: 'ease-in-out'
};
Notes
- Global slide transitions are only applied when
isEnabledis set totrue - The animation settings are applied to all slides in the deck
- Presentation globalSlideTransitions take presedence over Deck when set
globalDataStoreDataManagement
Description
- Returns the Deck's global data store data management configuration. This configuration allows you to manage and synchronize data across components in the deck.
Return Value: Object
The returned object has the following properties:
| Property | Type | Default | Description |
|---|---|---|---|
isEnabled | boolean | false | Whether global data store data management is enabled |
categories | Array | [] | Array of category configurations for data management |
Each category in the categories array has the following properties:
| Property | Type | Description |
|---|---|---|
isGlobal | boolean | Whether the category data should be managed at the deck level (true) or presentation level (false) |
category | string | The category key for the data store |
Code Example
// Get the current global data store data management configuration
const dataManagement = digideckCore.deck.globalDataStoreDataManagement;
// Configure global data store data management
digideckCore.deck.globalDataStoreDataManagement = {
isEnabled: true,
categories: [
{ isGlobal: true, category: 'visibility' },
{ isGlobal: false, category: 'inputs' }
]
};
Notes
- Global data store data management is only applied when
isEnabledis set totrue - When
isGlobalis true, data is managed at the deck level and shared across all presentations - When
isGlobalis false, data is managed at the presentation level and is specific to each presentation - Presentation globalDataStoreDataManagement takes precedence over Deck when set