Skip to main content

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​

ParameterAttributeTypeDefaultNotes
themedata-themelight | darklightWidget theme
localedata-localestringenSee supported locales
primaryColordata-primary-colorhex color#069BECIcons, borders, text accents
secondaryColordata-secondary-colorhex color#F3FBFFBackgrounds and hover states

Filters​

ParameterAttributeTypeDefaultNotes
countriesdata-countriescomma-separated codesalle.g. US,GB,EU
prioritydata-priorityLow | Medium | HighallMinimum event priority to display
timezonedata-timezoneIANA timezoneUTCe.g. America/New_York
weekdata-weekISO datecurrent weekInitial week to display

Features​

ParameterAttributeTypeDefaultNotes
showAnalysisButtondata-show-analysis-buttonbooleantrueAI-Nalysis button per event
autoScrolldata-auto-scrollbooleantrueScroll to today on load

Sizing​

ParameterAttributeTypeDefaultNotes
widthdata-widthCSS size100%Container width (also forwarded to the widget)
heightdata-heightCSS size600pxContainer height (also forwarded to the widget); fixed heights only (auto is not supported by this loader)
nonedata-container-idstringgeneratedUse an existing element as the container