MCPcopy Index your code
hub / github.com/angular/components / dispatchEvent

Function dispatchEvent

src/cdk/testing/testbed/fake-events/dispatch-events.ts:22–25  ·  view source on GitHub ↗
(node: Node | Window, event: T)

Source from the content-addressed store, hash-verified

20 * @docs-private
21 */
22export function dispatchEvent<T extends Event>(node: Node | Window, event: T): T {
23 node.dispatchEvent(event);
24 return event;
25}
26
27/**
28 * Shorthand to dispatch a fake event on a specified node.

Callers 15

dispatchEventMethod · 0.90
dispatchFakeEventFunction · 0.70
dispatchKeyboardEventFunction · 0.70
dispatchMouseEventFunction · 0.70
dispatchPointerEventFunction · 0.70
dispatchTouchEventFunction · 0.70
tooltip.spec.tsFile · 0.50
chip-grid.spec.tsFile · 0.50
chip-row.spec.tsFile · 0.50
keyDownOnPrimaryActionFunction · 0.50
chip-input.spec.tsFile · 0.50

Calls 1

dispatchEventMethod · 0.65

Tested by 8

keyDownOnPrimaryActionFunction · 0.40
setValueByClickFunction · 0.40
slideToValueFunction · 0.40
mouseenterFunction · 0.40
mousemoveFunction · 0.40

Used in the wild real call sites across dependent graphs

searching dependent graphs…