Skip to main content
Version: 2.0.0

sodexo-deposit-detail-template

The sodexo-deposit-detail-template component displays detailed information about a specific user deposit. This template includes built-in API integration and i18n support.

Authentication Required

This template requires a valid authentication token to access deposit details.

Properties

PropertyHTML AttributeTypeDefaultDescription
themethemeThemeDefault Sodexo themeCustomization variables for Sodexo components theme
apiKeyapi-keystring-X-API-key for Sodexo API
tokentokenstring-Authentication token for Sodexo API
badgeIdbadge-idstring-Badge identifier associated with the deposit
depositIddeposit-idstring-Deposit identifier to display details for

Usage

<!DOCTYPE html>
<html>
<body>
<sodexo-deposit-detail-template
api-key="your-api-key"
token="user-auth-token"
badge-id="badge-123"
deposit-id="deposit-456"
></sodexo-deposit-detail-template>

<script>
const element = document.querySelector('sodexo-deposit-detail-template');

// Apply custom theme
element.theme = {
'--sodexo-primary-color': '#283897',
'--sodexo-primary-text-color': '#283897',
'--sodexo-primary-background-color': '#f7f8ff',
'--sodexo-font-family': 'Open Sans',
};
</script>

</body>
</html>