From 49b6ff7292b99427b8f1a7451c9d4599f739a700 Mon Sep 17 00:00:00 2001 From: Sercan Yemen Date: Mon, 11 Sep 2017 12:58:24 +0300 Subject: [PATCH] navigation model for horizontal nav --- src/app/navigation.model.ts | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/src/app/navigation.model.ts b/src/app/navigation.model.ts index 216e5a72..0dc73287 100644 --- a/src/app/navigation.model.ts +++ b/src/app/navigation.model.ts @@ -1,10 +1,11 @@ export class FuseNavigation { - public items: any[]; + public verticalNavItems: any[]; + public horizontalNavItems: any[]; constructor() { - this.items = [ + this.verticalNavItems = [ { 'title': 'APPS', 'type' : 'subheader' @@ -21,5 +22,26 @@ export class FuseNavigation } } ]; + + this.horizontalNavItems = [ + { + 'title' : 'Apps', + 'icon' : 'apps', + 'type' : 'nav-collapse', + 'children': [ + { + 'title': 'Sample', + 'type' : 'nav-item', + 'icon' : 'email', + 'url' : '/sample', + 'badge': { + 'title': 25, + 'bg' : '#F44336', + 'fg' : '#FFFFFF' + } + } + ] + } + ]; } }