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

Method _addTimestampToSelection

packages/main/src/DayPicker.ts:593–597  ·  view source on GitHub ↗
(timestamp: number)

Source from the content-addressed store, hash-verified

591 }
592
593 _addTimestampToSelection(timestamp: number) {
594 if (!this.selectedDates.includes(timestamp)) {
595 this.selectedDates = [...this.selectedDates, timestamp];
596 }
597 }
598
599 _removeTimestampFromSelection(timestamp: number) {
600 this.selectedDates = this.selectedDates.filter(value => value !== timestamp);

Callers 2

_selectWeekMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected