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

Method _getActions

src/material/chips/chip.ts:370–386  ·  view source on GitHub ↗

Gets all of the actions within the chip.

()

Source from the content-addressed store, hash-verified

368
369 /** Gets all of the actions within the chip. */
370 _getActions(): MatChipAction[] {
371 const result: MatChipAction[] = [];
372
373 if (this.editIcon) {
374 result.push(this.editIcon);
375 }
376
377 if (this.primaryAction) {
378 result.push(this.primaryAction);
379 }
380
381 if (this.removeIcon) {
382 result.push(this.removeIcon);
383 }
384
385 return result;
386 }
387
388 /** Handles interactions with the primary action of the chip. */
389 _handlePrimaryActionInteraction() {

Callers 4

_getSourceActionMethod · 0.95
_setUpFocusManagementMethod · 0.80

Calls 1

pushMethod · 0.65

Tested by

no test coverage detected