@@ -56,9 +56,14 @@ export class VerticalNavigationComponent implements OnInit, OnDestroy {
5656 @Input ( ) contentContainer : HTMLElement ;
5757
5858 /**
59- * Boolean to indicate whether or not to show badges , default: false
59+ * Indicates whether or not this is a mobile friendly navigation , default: false
6060 */
61- @Input ( ) showBadges : boolean = false ;
61+ @Input ( ) ignoreMobile : boolean = false ;
62+
63+ /**
64+ * The navigation items used to build the menu
65+ */
66+ @Input ( ) items : VerticalNavigationItem [ ] ;
6267
6368 /**
6469 * Indicates whether or not to allow the secondary to persist, default: false
@@ -71,29 +76,31 @@ export class VerticalNavigationComponent implements OnInit, OnDestroy {
7176 @Input ( ) pinnableMenus : boolean = false ;
7277
7378 /**
74- * Show menu icons , default: true
79+ * Boolean to indicate whether or not to show badges , default: false
7580 */
76- @Input ( ) showIcons : boolean = true ;
81+ @Input ( ) showBadges : boolean = false ;
7782
7883 /**
79- * The navigation items used to build the menu
84+ * Show menu icons, default: true
8085 */
81- @Input ( ) items : VerticalNavigationItem [ ] ;
86+ @Input ( ) showIcons : boolean = true ;
8287
8388 /**
84- * Sets an active flag on items when they are selected, default: false
89+ * Boolean indicating menu is shown initially collapsed
90+ *
91+ * Note that this does not apply for the mobile state
8592 */
86- @Input ( ) updateActiveItemsOnClick : boolean = false ;
93+ @Input ( ) showMenuCollapsed : boolean = false ;
8794
8895 /**
89- * Indicates whether or not this is a mobile friendly navigation , default: false
96+ * Show top banner , default: true
9097 */
91- @Input ( ) ignoreMobile : boolean = false ;
98+ @Input ( ) showTopBanner : boolean = true ;
9299
93100 /**
94- * Show top banner , default: true
101+ * Sets an active flag on items when they are selected , default: false
95102 */
96- @Input ( ) showTopBanner : boolean = true ;
103+ @Input ( ) updateActiveItemsOnClick : boolean = false ;
97104
98105 /**
99106 * This event is fired any time the user has initiated navigation
@@ -160,6 +167,9 @@ export class VerticalNavigationComponent implements OnInit, OnDestroy {
160167 this . initActiveItems ( ) ;
161168 }
162169
170+ if ( this . showMenuCollapsed !== undefined ) {
171+ this . explicitCollapse = this . showMenuCollapsed ;
172+ }
163173 this . initBodyElement ( ) ;
164174 this . checkNavState ( ) ;
165175 }
0 commit comments