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

Function _closeDialogVia

src/material/dialog/dialog-ref.ts:261–264  ·  view source on GitHub ↗
(ref: MatDialogRef<R>, interactionType: FocusOrigin, result?: R)

Source from the content-addressed store, hash-verified

259 */
260// TODO: Move this back into `MatDialogRef` when we provide an official mock dialog ref.
261export function _closeDialogVia<R>(ref: MatDialogRef<R>, interactionType: FocusOrigin, result?: R) {
262 (ref as unknown as {_closeInteractionType: FocusOrigin})._closeInteractionType = interactionType;
263 return ref.close(result);
264}

Callers 2

_onButtonClickMethod · 0.90
constructorMethod · 0.85

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…