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

Method _getActions

src/material/chips/chip.ts:391–407  ·  view source on GitHub ↗

Gets all of the actions within the chip.

()

Source from the content-addressed store, hash-verified

389
390 /** Gets all of the actions within the chip. */
391 _getActions(): MatChipAction[] {
392 const result: MatChipAction[] = [];
393
394 if (this.editIcon) {
395 result.push(this.editIcon);
396 }
397
398 if (this.primaryAction) {
399 result.push(this.primaryAction);
400 }
401
402 if (this.removeIcon) {
403 result.push(this.removeIcon);
404 }
405
406 return result;
407 }
408
409 /** Handles interactions with the primary action of the chip. */
410 _handlePrimaryActionInteraction() {

Callers 4

_getSourceActionMethod · 0.95
_setUpFocusManagementMethod · 0.80

Calls 1

pushMethod · 0.65

Tested by

no test coverage detected