Gets the action that contains a specific target node.
(target: Node)
| 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[] { |
no test coverage detected