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

Method _updateSelectedDates

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

Source from the content-addressed store, hash-verified

386 }
387
388 _updateSelectedDates(timestamp: number) {
389 if (this.selectionMode === CalendarSelectionMode.Range && this.selectedDates.length === 1) {
390 this.selectedDates = [this.selectedDates[0], timestamp];
391 return;
392 }
393
394 this.selectedDates = [timestamp];
395 }
396
397 /**
398 * Called by the Calendar component.

Callers 1

_selectMonthMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected