Skip to content

Add pfVerticalNavigation directive. - #276

Merged
dgutride merged 1 commit into
patternfly:masterfrom
jeff-phillips-18:navigation
Aug 10, 2016
Merged

Add pfVerticalNavigation directive.#276
dgutride merged 1 commit into
patternfly:masterfrom
jeff-phillips-18:navigation

Conversation

@jeff-phillips-18

Copy link
Copy Markdown
Member

Directive for vertical navigation.

This sets up the nav bar header with the collapse button (hamburger)
and the application brand image (or text) as well as the vertical
navigation menu containing the navigation items.

This directive supports primary, secondary, and tertiary
navigation with options to allow pinning of the secondary and
tertiary navigation menus as well as the option for persistent
secondary menus.

@jeff-phillips-18

Copy link
Copy Markdown
Member Author

@dgutride @dtaylor113 Please review

Please try out the NG Docs for this and give me any usability thoughts. Due to the full page nature of vertical navigation, I had to take some liberties to be able to demo this in the NG Docs.

* Directive for vertical navigation. This sets up the nav bar header with the collapse button (hamburger) and the
* application brand image (or text) as well as the vertical navigation bar containing the navigation items. This
* directive supports primary, secondary, and tertiary navigation with options to allow pinning of the secondary and
* tertiary navigation menus as well as teh option for persistent secondary menus.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

teh option...

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed, thanks!

@dgutride

dgutride commented Aug 5, 2016

Copy link
Copy Markdown
Member

Pulled/locally - built and ran without issues. One thought on the demo area - I like how it takes you in and out of that mode, but maybe a small bit of text explaining that they will be taken to a new window and can return from there could make it a little less jarring. The top button once inside was very clear, though so it's pretty obvious how they can get back there. One other option is to launch it in a new window (if that's possible) as long as we tell them we are doing that. Just one spelling issue I saw in the help text.

@jeff-phillips-18

Copy link
Copy Markdown
Member Author

@dgutride I thought about launching a window but I'm unsure how to get that to work such that the files are served up for the new window. All the components are added via the ng-docs and I don't know how to make it available to a new window.

I'm not exactly sure what I could add for text to explain that the current content of the page will be hidden while in demo mode.

@jeff-phillips-18

Copy link
Copy Markdown
Member Author

Updated to fix @dgutride issue (mis-spelling)

};

if (!$scope.updateActiveItemsOnClick) {
rootScope.$on( "$routeChangeSuccess", function (event, next, current) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This event should be disposed of when the directive is removed.

@dtaylor113

dtaylor113 commented Aug 8, 2016

Copy link
Copy Markdown
Member

Looks good to me. +1 to perhaps adding a little more text indicating whats going to happen when a user clicks on the [Show Visual Navigation] button

@jeff-phillips-18

Copy link
Copy Markdown
Member Author

Added call to remove route change listener on destroy ( @dgutride issue above )

Directive for vertical navigation.

This sets up the nav bar header with the collapse button (hamburger)
and the application brand image (or text) as well as the vertical
navigation menu containing the navigation items.

This  directive supports primary, secondary, and tertiary
navigation with options to allow pinning of the secondary and
tertiary navigation menus as well as the option for persistent
secondary menus.
@jeff-phillips-18

Copy link
Copy Markdown
Member Author

Added a blurb to forewarn about the content being covered and how to get back ( @dgutride @dtaylor113 comments ).
Moved styling into example.css

@dgutride

Copy link
Copy Markdown
Member

This looks good to me.

@jeff-phillips-18

Copy link
Copy Markdown
Member Author

@dtaylor113 Please re-review

@dtaylor113

Copy link
Copy Markdown
Member

LGTM

@dgutride
dgutride merged commit 24e6835 into patternfly:master Aug 10, 2016
priley86 pushed a commit to priley86/angular-patternfly that referenced this pull request Aug 12, 2016
@jeff-phillips-18
jeff-phillips-18 deleted the navigation branch March 13, 2018 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants