Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add navigation buttons to navigation bar #179

Open
Mokkapps opened this issue Dec 12, 2018 · 5 comments
Open

Add navigation buttons to navigation bar #179

Mokkapps opened this issue Dec 12, 2018 · 5 comments

Comments

@Mokkapps
Copy link

Mokkapps commented Dec 12, 2018

Hi,

thanks for this component it looks really helpful and I want to use it in a project.

I have just one question:

Is it possible to add navigation buttons to the navigation bar without forking this repository?

I would like to have a previous and next button (e.g. arrow icons) to the left & right side of the navigation bar.

Additionally it would be nice to have the step icons clickable

Thanks in advance!

@Mokkapps
Copy link
Author

Finally, I decided to use Angular Material CdkStepper as I am totally flexible there.

But anyways, your component is nice!

@madoar
Copy link
Owner

madoar commented Dec 13, 2018

What you want is currently not possible with angular-archwizard, because the navigation bar is set to use 100% of the width of its parent.
This sounds like a good enhancement.

@madoar
Copy link
Owner

madoar commented Dec 1, 2019

A possible way to implement this would be to provide two directives awBeforeNavigationBar and awAfterNavigationBar which are injected via their templateRef before and after the navigation bar. This would be a similar solution to the way we currently handle the step titles and the step navigation symbols with awWizardStepSymbol and awWizardStepTitle.

A challenge with this approach i that I think we would need to inject the templateRefs somewhere inside the navigation bar to ensure that the design does not break. More specific we would need to ensure that the single line layout for the horizontal layout and sticky properties for awBeforeNavigationBar and awAfterNavigationBar for the vertical layout are retained.

@earshinov what do you think about this? Do you think this is feasible?

@earshinov
Copy link
Contributor

@madoar , I think your proposition is fine, but I would rather wait for another feature request or pull request. I don't think this feature will have many users.

@madoar
Copy link
Owner

madoar commented Dec 9, 2019

I guess you are right

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants