MCPcopy Create free account
hub / github.com/angular/components / _getSourceAction

Method _getSourceAction

src/material/chips/chip.ts:383–388  ·  view source on GitHub ↗

Gets the action that contains a specific target node.

(target: Node)

Source from the content-addressed store, hash-verified

381
382 /** Gets the action that contains a specific target node. */
383 _getSourceAction(target: Node): MatChipAction | undefined {
384 return this._getActions().find(action => {
385 const element = action._elementRef.nativeElement;
386 return element === target || element.contains(target);
387 });
388 }
389
390 /** Gets all of the actions within the chip. */
391 _getActions(): MatChipAction[] {

Callers 2

_startEditingMethod · 0.80
_setUpFocusManagementMethod · 0.80

Calls 1

_getActionsMethod · 0.95

Tested by

no test coverage detected