Closed gashcrumb closed 7 years ago
Preferably without using jQuery, as we are using Angular 2 and want to avoid having to manipulate the DOM from any logic/functionality.
EDIT: Nvm we are using more jQuery than I thought. I guess there is a lot more cleanup to be done than I originally thought.
@kahboom Well, it's a jquery plugin, isn't it? At least the code that sizes it to the window etc all appears to be, if that's the option I can live with it for now.
there is an angular patternfly directive for vertical navigation but is for Angular 1. Version 4.x of angular patternfly (currently in alpha) can be upverted to Angular 2 since all the directives have been changed to components. If you are interested in that, then the vertical nav component could be enhanced with this feature but it does not exist at this time.
Okay cool. yeah, I think it'd be a handy feature to have for sure, we'll have to look into pulling in the alpha as well. I may be able to work around the lack of an API for now, but then using 4.x might be a better use of my time :-)
@LHinson Can we add a story to the backlog to add the ability to hide/show the vertical nav bar in the angular patternfly component (at least in 4.x, might want to add to 3.x as well)?
Thanks for bringing this up @gashcrumb Would you be willing to send a PR for this?
@LHinson yeah, I could probably do that, give me a bit to grok the code :-)
@LHinson actually I should ask, the jquery based one in this repo or the angular-patternfly implementation? Or both?
@gashcrumb awesome! Thanks!
@gashcrumb beggers can't be choosers haha. We would take both if you want to send a PR for both!
With this PR merged I'd consider this closed, one follow on question, when's the next release planned? :-)
Resolved with #582;
Hey guys! Using the vertical nav for our ipaas console, but for some pages we need to toggle the vertical nav depending on the view. Is there an API for doing that? Previously I've achieved the desired effect by adding
collapsed
andcollapsed-nav
tags to the relevant elements, but it'd be nicer if I could just toggle it via a javascript call. Thanks!