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

Method _modifyTimestampBy

packages/main/src/YearRangePicker.ts:489–496  ·  view source on GitHub ↗

* Modifies timestamp by a given amount of year ranges and, if necessary, loads the prev/next page. * @param amount * @private

(amount: number)

Source from the content-addressed store, hash-verified

487 * @private
488 */
489 _modifyTimestampBy(amount: number) {
490 // Modify the current timestamp
491 const amountInYears = amount * this._getRangeSize();
492 this._safelyModifyTimestampBy(amountInYears, "year");
493
494 // Notify the calendar to update its timestamp
495 this.fireDecoratorEvent("navigate", { timestamp: this.timestamp! });
496 }
497
498 _modifyGridStartBy(years: number) {
499 this._gridStartYear! += years;

Callers 3

_onkeydownMethod · 0.95
_showPreviousPageMethod · 0.95
_showNextPageMethod · 0.95

Calls 2

_getRangeSizeMethod · 0.95

Tested by

no test coverage detected