From f35c1add1ce9936faf498a7abfccf27cde76d30e Mon Sep 17 00:00:00 2001 From: Sercan Yemen Date: Sun, 1 Jul 2018 12:20:33 +0300 Subject: [PATCH] Added ability to add custom classes to the navigation items using the "classes" property Fixed: Item function and External URL's are missing from horizontal navigation Fixed: Horizontal navigation active item does not highlight correctly --- .../collapsable/collapsable.component.html | 30 +++++++++++++---- .../horizontal/item/item.component.html | 32 +++++++++++++++---- .../collapsable/collapsable.component.html | 15 +++++---- .../vertical/group/group.component.html | 2 +- .../vertical/item/item.component.html | 12 ++++--- src/@fuse/types/fuse-navigation.ts | 1 + 6 files changed, 66 insertions(+), 26 deletions(-) diff --git a/src/@fuse/components/navigation/horizontal/collapsable/collapsable.component.html b/src/@fuse/components/navigation/horizontal/collapsable/collapsable.component.html index 28a5e64b..740df664 100644 --- a/src/@fuse/components/navigation/horizontal/collapsable/collapsable.component.html +++ b/src/@fuse/components/navigation/horizontal/collapsable/collapsable.component.html @@ -1,29 +1,45 @@ - + - + + + + + + - + - + + + + + {{item.icon}} {{item.title}} diff --git a/src/@fuse/components/navigation/horizontal/item/item.component.html b/src/@fuse/components/navigation/horizontal/item/item.component.html index b623bb8f..31da0d39 100644 --- a/src/@fuse/components/navigation/horizontal/item/item.component.html +++ b/src/@fuse/components/navigation/horizontal/item/item.component.html @@ -1,20 +1,38 @@ - + + + + + + - + - + + + + + + @@ -27,4 +45,4 @@ - + \ No newline at end of file diff --git a/src/@fuse/components/navigation/vertical/collapsable/collapsable.component.html b/src/@fuse/components/navigation/vertical/collapsable/collapsable.component.html index bc4ddf44..d3bc9faa 100644 --- a/src/@fuse/components/navigation/vertical/collapsable/collapsable.component.html +++ b/src/@fuse/components/navigation/vertical/collapsable/collapsable.component.html @@ -1,12 +1,14 @@ - + - @@ -14,19 +16,20 @@ - - - @@ -34,7 +37,7 @@ - diff --git a/src/@fuse/components/navigation/vertical/group/group.component.html b/src/@fuse/components/navigation/vertical/group/group.component.html index 26820b81..3285cfd3 100644 --- a/src/@fuse/components/navigation/vertical/group/group.component.html +++ b/src/@fuse/components/navigation/vertical/group/group.component.html @@ -1,6 +1,6 @@ -
+
{{ item.title }}
diff --git a/src/@fuse/components/navigation/vertical/item/item.component.html b/src/@fuse/components/navigation/vertical/item/item.component.html index a90e4f99..31da0d39 100644 --- a/src/@fuse/components/navigation/vertical/item/item.component.html +++ b/src/@fuse/components/navigation/vertical/item/item.component.html @@ -1,7 +1,7 @@ -
@@ -9,19 +9,20 @@ - - - @@ -29,7 +30,8 @@ - diff --git a/src/@fuse/types/fuse-navigation.ts b/src/@fuse/types/fuse-navigation.ts index 823d633f..4c029c04 100644 --- a/src/@fuse/types/fuse-navigation.ts +++ b/src/@fuse/types/fuse-navigation.ts @@ -7,6 +7,7 @@ export interface FuseNavigationItem icon?: string; hidden?: boolean; url?: string; + classes?: string; exactMatch?: boolean; externalUrl?: boolean; openInNewTab?: boolean;