MCPcopy
hub / github.com/angular/components / _getSourceAction

Method _getSourceAction

src/material/chips/chip.ts:362–367  ·  view source on GitHub ↗

Gets the action that contains a specific target node.

(target: Node)

Source from the content-addressed store, hash-verified

360
361 /** Gets the action that contains a specific target node. */
362 _getSourceAction(target: Node): MatChipAction | undefined {
363 return this._getActions().find(action => {
364 const element = action._elementRef.nativeElement;
365 return element === target || element.contains(target);
366 });
367 }
368
369 /** Gets all of the actions within the chip. */
370 _getActions(): MatChipAction[] {

Callers 2

_startEditingMethod · 0.80
_setUpFocusManagementMethod · 0.80

Calls 1

_getActionsMethod · 0.95

Tested by

no test coverage detected