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

Method onEnterDOM

packages/main/src/Button.ts:461–472  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

459 }
460
461 onEnterDOM() {
462 if (isDesktop()) {
463 this.setAttribute("desktop", "");
464 }
465
466 if (!this._clickHandlerAttached) {
467 this.addEventListener("click", this._onclickBound);
468 this._clickHandlerAttached = true;
469 }
470
471 registerUI5Element(this, this._updateAccessibleNameRefTexts.bind(this));
472 }
473
474 _updateAccessibleNameRefTexts() {
475 this._accessibleNameRefTexts = getAllAccessibleNameRefTexts(this);

Callers

nothing calls this directly

Calls 2

isDesktopFunction · 0.85
registerUI5ElementFunction · 0.85

Tested by

no test coverage detected