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

Method _updateSelectedDates

packages/main/src/YearPicker.ts:381–388  ·  view source on GitHub ↗
(timestamp: number)

Source from the content-addressed store, hash-verified

379 }
380
381 _updateSelectedDates(timestamp: number) {
382 if (this.selectionMode === CalendarSelectionMode.Range && this.selectedDates.length === 1) {
383 this.selectedDates = [this.selectedDates[0], timestamp];
384 return;
385 }
386
387 this.selectedDates = [timestamp];
388 }
389
390 /**
391 * Called by the Calendar component.

Callers 1

_selectYearMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected