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

Method _toggleTimestampInSelection

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

Source from the content-addressed store, hash-verified

582 }
583
584 _toggleTimestampInSelection(timestamp: number) {
585 if (this.selectedDates.includes(timestamp)) {
586 this._removeTimestampFromSelection(timestamp);
587 } else {
588 this._addTimestampToSelection(timestamp);
589 announce(DayPicker.i18nBundle.getText(LIST_ITEM_SELECTED), InvisibleMessageMode.Assertive);
590 }
591 }
592
593 _addTimestampToSelection(timestamp: number) {
594 if (!this.selectedDates.includes(timestamp)) {

Callers 1

_updateSelectedDatesMethod · 0.95

Calls 4

announceFunction · 0.85
getTextMethod · 0.80

Tested by

no test coverage detected