Game Outcome¶
Overview¶
The Game Outcome component provides a visual representation of the result of a particular game round.
Script URL¶
This web component is provided as a script and can be loaded from the CDN using the following URL pattern:
https://<cdn-url>/<bundle-version>/game-outcome.js
Example:
https://cdn.prod-gt-demo-games.gamnify.tech/v1.1.0/game-outcome.js
Both <cdn-url> and <bundle-version> values will be provided to you.
If making use of the browser's Subresource Integrity feature, the integrity hash will also be provided.
Component Details¶
Once the script is loaded, the Game Outcome component can be added to the page by using the element <gt-game-outcome>.
Required Attributes¶
| Attribute | Type | Description |
|---|---|---|
roundId |
string | The unique identifier of the game round to display. |
Optional Attributes¶
| Attribute | Type | Description |
|---|---|---|
locale |
string | The locale code for content localization (e.g. en-US). |
settledDateUtc |
string | The settlement date of the round in ISO 8601 UTC format (e.g. 2025-10-22T00:00:00.000Z). |
token |
string | The session token used for authentication. |
Example¶
<gt-game-outcome
roundId="1234-5678-9012"
settledDateUtc="2025-10-22T00:00:00.000Z"
token="auth-token-value"
></gt-game-outcome>
Events¶
The following is a list of all available events supported by this component.
Details on how to listen for and dispatch events can be found here.
Outgoing Events¶
gtGameOutcome.out.error¶
Outcome error occurred.
{
code: string | number;
[x: string]: unknown;
}
Note
Additional data may be passed as part of the payload where relevant.
gtGameOutcome.out.init¶
Outcome initialized.
{
roundId: string;
}