Skip to content

Currency switcher: theme data reference

Reading the data tables. Presence varies by page and state; this is not a requirement to populate every field.

Field Type Meaning Availability
viewModel.currencySwitcher object Currency switcher data; check child fields before use. When the parent is provided; check optional fields.
viewModel.currencySwitcher.currentCurrencyId number current currency identifier; do not load data with it. When the parent is provided; check optional fields.
viewModel.currencySwitcher.currentIsoCode string Current iso code value supplied for this context. When the parent is provided; check optional fields.
viewModel.currencySwitcher.currentLabel string Prepared current display text. When the parent is provided; check optional fields.
viewModel.currencySwitcher.currentShortLabel string Prepared current short display text. When the parent is provided; check optional fields.
viewModel.currencySwitcher.isEnabled boolean Whether enabled applies; use for display only. When the parent is provided; check optional fields.
viewModel.currencySwitcher.items array Prepared items collection; may be empty. When the parent is provided; check optional fields.
viewModel.currencySwitcher.items[].currencyId number currency identifier; do not load data with it. For each existing item; optional child fields depend on item type.
viewModel.currencySwitcher.items[].isActive boolean Whether active applies; use for display only. For each existing item; optional child fields depend on item type.
viewModel.currencySwitcher.items[].isoCode string Iso code value supplied for this context. For each existing item; optional child fields depend on item type.
viewModel.currencySwitcher.items[].label string Label value supplied for this context. For each existing item; optional child fields depend on item type.
viewModel.currencySwitcher.items[].shortLabel string Prepared short display text. For each existing item; optional child fields depend on item type.
viewModel.currencySwitcher.returnUrl string Prepared return URL; use unchanged. When the parent is provided; check optional fields.
viewModel.currencySwitcher.switchAction string Switch action value supplied for this context. When the parent is provided; check optional fields.