|
26 | 26 | * </ul>
|
27 | 27 | * <li>.uiSref - (string) Optional Angular UI Router state name. If specified, href must be not defined, and vice versa.
|
28 | 28 | * <li>.uiSrefOptions - (object) Optional object to be passed to Angular UI Router $state.go() function
|
| 29 | + * <li>.mobileOnly - (boolean) When set to 'true', menu item will only be displayed when browser is in mobile mode (<768px). |
| 30 | + * When <code>ignoreMobile</code> flag set to 'true', <code>mobileOnly</code> items are not displayed. |
29 | 31 | * </ul>
|
30 | 32 | * @param {function} navigateCallback function(item) Callback method invoked on a navigation item click (one with no submenus)
|
31 | 33 | * @param {function} itemClickCallback function(item) Callback method invoked on an item click
|
|
67 | 69 | <span class="caret"></span>
|
68 | 70 | </a>
|
69 | 71 | <ul class="dropdown-menu" aria-labelledby="dropdownMenu2">
|
70 |
| - <li><a href="#">Preferences</a></li> |
| 72 | + <li><a href="#">User Preferences</a></li> |
71 | 73 | <li><a href="#">Logout</a></li>
|
72 | 74 | </ul>
|
73 | 75 | </li>
|
|
125 | 127 | </p>\
|
126 | 128 | </div>\
|
127 | 129 | </div>'
|
| 130 | + }) |
| 131 | + .state('help', { |
| 132 | + url: '/help', |
| 133 | + template: '<div class="card-pf card-pf-accented card-pf-aggregate-status" style="height: 89px;">\ |
| 134 | + <div class="card-pf-body" style="height: 50px;">\ |
| 135 | + <p class="card-pf-aggregate-status-notifications">\ |
| 136 | + State: Help\ |
| 137 | + </p>\ |
| 138 | + </div>\ |
| 139 | + </div>' |
| 140 | + }) |
| 141 | + .state('user-prefs', { |
| 142 | + url: '/help', |
| 143 | + template: '<div class="card-pf card-pf-accented card-pf-aggregate-status" style="height: 89px;">\ |
| 144 | + <div class="card-pf-body" style="height: 50px;">\ |
| 145 | + <p class="card-pf-aggregate-status-notifications">\ |
| 146 | + State: User Preferences\ |
| 147 | + </p>\ |
| 148 | + </div>\ |
| 149 | + </div>' |
| 150 | + }) |
| 151 | + .state('logout', { |
| 152 | + url: '/help', |
| 153 | + template: '<div class="card-pf card-pf-accented card-pf-aggregate-status" style="height: 89px;">\ |
| 154 | + <div class="card-pf-body" style="height: 50px;">\ |
| 155 | + <p class="card-pf-aggregate-status-notifications">\ |
| 156 | + State: Logout\ |
| 157 | + </p>\ |
| 158 | + </div>\ |
| 159 | + </div>' |
128 | 160 | });
|
129 | 161 | })
|
130 | 162 | .controller('vertNavWithRouterController', ['$scope',
|
|
146 | 178 | iconClass : "fa fa-space-shuttle",
|
147 | 179 | uiSref: "ipsum"
|
148 | 180 | },
|
| 181 | + { |
| 182 | + title: "Help", |
| 183 | + iconClass: "fa pficon-help", |
| 184 | + uiSref: "help", |
| 185 | + mobileOnly: true |
| 186 | + }, |
| 187 | + { |
| 188 | + title: "User", |
| 189 | + iconClass: "fa pficon-user", |
| 190 | + mobileOnly: true, |
| 191 | + children: [ |
| 192 | + { title: "User Preferences", uiSref: "user-prefs" }, |
| 193 | + { title: "Logout", uiSref: "logout" } |
| 194 | + ] |
| 195 | + }, |
149 | 196 | {
|
150 | 197 | title: "Exit Demo"
|
151 | 198 | }
|
|
0 commit comments