(this page was created automatically. In case of formatting issues, please visit the official Wiki Page)

Date Interval Counter

(not verified)

Overview

[IMAGE PLACEHOLDER: Date Interval Counter displaying elapsed time example]

Specs

Tokens

Token Description
displayName Display name of the component in the structure panel
dateDataField Field name in the data source that contains the date
durationType Format of the time interval (days, daysWithHours, daysWithHoursAndMinutes)
paddingClass CSS spacing class for visual padding
dataSourceType Defines whether the date comes from a single object or collection
events Configures component events
ON_INIT (Events) Event triggered when component initializes
ON_GLOBAL_PARAMETERS_CHANGE (Events) Event triggered when global parameters change
ON_DESTROY (Events) Event triggered when component is removed
visibilityPolicySetId Controls visibility using policy sets
displayConditions Rules for when the component is displayed
dataTestId ID for automated testing
enableAsHotspot Enables guided tour hotspot functionality
guidedTourHotSpotTitle Title for guided tour hotspot (supports translations)
guidedTourHotSpotDescription Description for guided tour hotspot (supports translations)

Structure

(Configured in General Properties)

(Configured in Datasource)

[IMAGE PLACEHOLDER: Structure of Date Interval Counter showing data field and data source type]

Styling

(Configured in Visual Properties)

(Configured in Visibility)

[IMAGE PLACEHOLDER: Styling options of Date Interval Counter showing display name, padding, and display conditions]

Actions & Variants

(Configured in Events)

Authorization

(Configured in Authorization)

Tests

(Configured in Testing Hooks)

Links

Guidelines

Usage

Sizing & Layout

Data-Driven / Conditional Behavior

Visibility & Authorization

Dos & Don’ts

Do Don’t Article setting(s)
Bind to a date field that always exists (use dot notation if needed). Point to an optional or inconsistently typed field that yields “invalid date.” dateDataField
Choose one suitable precision and keep it fixed per instance. Flip between days and daysWithHoursAndMinutes mid-session. durationType
Hide when the source date is missing or invalid. Show “0 days” for records without a date. displayConditions, dateDataField
Use single when reading from one record; collection when the source is a list. Assume collections and singles behave the same or read from the wrong index. dataSourceType, dateDataField
Refresh the value when global parameters change. Leave stale values after context updates. events.ON_GLOBAL_PARAMETERS_CHANGE
Add spacing only through the component’s padding token. Rely on external CSS wrappers to create spacing. paddingClass
Gate sensitive counters by policy. Show sensitive durations to all users. visibilityPolicySetId
Localize the hotspot copy for tours. Hard‑code English strings in the tour. enableAsHotspot, guidedTourHotSpotTitle, guidedTourHotSpotDescription

Accessibility