MCPcopy Create free account
hub / github.com/UI5/webcomponents / DynamicDateRange

Class DynamicDateRange

packages/main/src/DynamicDateRange.ts:133–506  ·  view source on GitHub ↗

* @class * * ### Overview * * The `ui5-dynamic-date-range` component provides a flexible interface to define date ranges using a combination of absolute dates, relative intervals, and preset ranges (e.g., "Today", "Yesterday", etc.). * It allows users to select a date range from a predefined se

Source from the content-addressed store, hash-verified

131 * @since 2.11.0
132 */
133@customElement({
134 tag: "ui5-dynamic-date-range",
135 languageAware: true,
136 cldr: true,
137 template: DynamicDateRangeTemplate,
138 renderer: jsxRenderer,
139 styles: [
140 dynamicDateRangeCss,
141 ResponsivePopoverCommonCss,
142 dynamicDateRangePopoverCss,
143 ],
144})
145
146/**
147 * Fired when the input operation has finished by pressing Enter or on focusout or a value is selected in the popover.
148 * @public
149 */
150@event("change", {
151 bubbles: true,
152 cancelable: true,
153})
154class DynamicDateRange extends UI5Element {
155 eventDetails!: {
156 change: void,
157 }
158
159 @i18n("@ui5/webcomponents")
160 static i18nBundle: I18nBundle;
161
162 /**
163 * Defines the value object.
164 * @default undefined
165 * @public
166 */
167 @property({ noAttribute: true })
168 value?: DynamicDateRangeValue;
169
170 /**
171 * Defines the options listed as a string, separated by commas and using capital case.
172 * Example: "TODAY, YESTERDAY, DATERANGE"
173 * @public
174 * @default ""
175 */
176 @property({ type: String })
177 options = "";
178
179 /**
180 * Defines the open or closed state of the popover.
181 * @private
182 * @default false
183 */
184 @property({ type: Boolean })
185 open = false;
186
187 @property({ type: Object })
188 _currentOption?: IDynamicDateRangeOption;
189
190 _lastSelectedOption?: IDynamicDateRangeOption;

Callers

nothing calls this directly

Calls 5

customElementFunction · 0.85
i18nFunction · 0.85
propertyFunction · 0.85
queryFunction · 0.85
eventFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…