From dd1076f994dd6e54a428141d670581436838b280 Mon Sep 17 00:00:00 2001 From: Albert Gasset Date: Tue, 30 Apr 2019 11:05:06 +0200 Subject: [PATCH] MOBILE-2914 context-menu: Icon slash parameter --- src/components/context-menu/context-menu-item.ts | 1 + src/components/context-menu/core-context-menu-popover.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/context-menu/context-menu-item.ts b/src/components/context-menu/context-menu-item.ts index e748dee34..0870cbcd3 100644 --- a/src/components/context-menu/context-menu-item.ts +++ b/src/components/context-menu/context-menu-item.ts @@ -39,6 +39,7 @@ export class CoreContextMenuItemComponent implements OnInit, OnDestroy, OnChange // If is "spinner" an spinner will be shown. // If no icon or spinner is selected, no action or link will work. // If href but no iconAction is provided arrow-right will be used. + @Input() iconSlash?: boolean; // Display a red slash over the icon. @Input() ariaDescription?: string; // Aria label to add to iconDescription. @Input() ariaAction?: string; // Aria label to add to iconAction. If not set, it will be equal to content. @Input() href?: string; // Link to go if no action provided. diff --git a/src/components/context-menu/core-context-menu-popover.html b/src/components/context-menu/core-context-menu-popover.html index d785687be..69ffdadf7 100644 --- a/src/components/context-menu/core-context-menu-popover.html +++ b/src/components/context-menu/core-context-menu-popover.html @@ -3,7 +3,7 @@ - + {{item.badge}}