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

Method _modifyTimestampBy

packages/main/src/YearPicker.ts:342–349  ·  view source on GitHub ↗

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

(amount: number)

Source from the content-addressed store, hash-verified

340 * @private
341 */
342 _modifyTimestampBy(amount: number) {
343 // Modify the current timestamp
344 this._safelyModifyTimestampBy(amount, "year");
345 this._updateSecondTimestamp();
346
347 // Notify the calendar to update its timestamp
348 this.fireDecoratorEvent("navigate", { timestamp: this.timestamp! });
349 }
350
351 _onkeyup(e: KeyboardEvent) {
352 if (isSpace(e)) {

Callers 3

_onkeydownMethod · 0.95
_showPreviousPageMethod · 0.95
_showNextPageMethod · 0.95

Calls 2

Tested by

no test coverage detected