Economic Calendar widget parameters
All parameters are optional. Pass them as data-* attributes on the script tag (kebab-case), or as JSON keys in the legacy configuration form (camelCase).
Appearance
| Parameter | Attribute | Type | Default | Notes |
|---|
theme | data-theme | light | dark | light | Widget theme |
locale | data-locale | string | en | See supported locales |
primaryColor | data-primary-color | hex color | #069BEC | Icons, borders, text accents |
secondaryColor | data-secondary-color | hex color | #F3FBFF | Backgrounds and hover states |
Filters
| Parameter | Attribute | Type | Default | Notes |
|---|
countries | data-countries | comma-separated codes | all | e.g. US,GB,EU |
priority | data-priority | Low | Medium | High | all | Minimum event priority to display |
timezone | data-timezone | IANA timezone | UTC | e.g. America/New_York |
week | data-week | ISO date | current week | Initial week to display |
Features
| Parameter | Attribute | Type | Default | Notes |
|---|
showAnalysisButton | data-show-analysis-button | boolean | true | AI-Nalysis button per event |
autoScroll | data-auto-scroll | boolean | true | Scroll to today on load |
Sizing
| Parameter | Attribute | Type | Default | Notes |
|---|
width | data-width | CSS size | 100% | Container width (also forwarded to the widget) |
height | data-height | CSS size | 600px | Container height (also forwarded to the widget); fixed heights only (auto is not supported by this loader) |
| none | data-container-id | string | generated | Use an existing element as the container |