MCPcopy Index your code
hub / github.com/angular/angular / roleTarget

Function roleTarget

packages/core/primitives/event-dispatch/test/event_test.ts:24–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22}
23
24function roleTarget(): HTMLElement {
25 const target = document.createElement('div');
26 target.setAttribute('tabIndex', '0');
27 target.setAttribute('role', 'textbox');
28 return target;
29}
30
31/**
32 * Returns true if the given key or keyCode acts as a click event for the

Callers 1

event_test.tsFile · 0.85

Calls 2

createElementMethod · 0.65
setAttributeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…