components icon indicating copy to clipboard operation
components copied to clipboard

bottom-nav component

Open jelbourn opened this issue 10 years ago • 55 comments

See https://material.io/design/components/bottom-navigation.html

jelbourn avatar May 09 '16 16:05 jelbourn

@jelbourn I like that implmentation a lot better, easier to read from the HTML side. I'll start on the design doc sometime next week and open it up for comments

pyle avatar Jun 13 '17 22:06 pyle

Hello all, I have been working on in a component, but this one is using bootstrap 4, if any of you want to do an angular material version, just send a pull request it follows the api that you have been speaking here.

use-example

https://github.com/robertofd1995/BottomBar_Component

Thanks also to @pyle , he help me showing me his version

robertofd1995 avatar Sep 01 '17 16:09 robertofd1995

Just so I keep everyone updated (and don't lose the doc). I started the design doc and have been working on it more as of late. Time is the factor regarding the progress :)

pyle avatar Sep 04 '17 06:09 pyle

Any update on this one? I would be happy to contribute. I have implemented my own custom mat-bottom-nav that I use in my application. Let me know what steps would I need to go trough for you to be able to feature it in.

MaciejCaputa avatar Dec 13 '17 12:12 MaciejCaputa

Hey @MaciejCaputa I've been flat chat and haven't even worked on this. The first step is finishing the design doc so that it's all polished and ready. (I can provide edit access if you'd like to contribute) Once that's been reviewed and tweaked the implementation can be done.

Out of curiosity, is your implementation similar to Jeremy's comment above?

pyle avatar Dec 13 '17 21:12 pyle

Thanks for answering @pyle.

There are couple of ways to provide the API and I think that there should be some flexibility in how developer can provide data for menu.

  1. One option is to provide @Input() items (I use it in in one of my projects since for different user roles we have different menus) onmat-bottomnav where items is an array of objects with icon, label, and absolute route as properties. Then the menu is rendered internally. Moreover additional @Input properties on mat-bottomnav such as background color, icon color. According to material guidelines user may or may not wish to display labels for non-active items.
<mat-bottomnav tabs="tabs"></mat-bottomnav>
  1. Other more declarative approach would be to define menu using mat-bottomnav and mat-bottomnav-item with latter having icon, label, route as input properties.
<mat-bottomnav text="hide">
  <mat-bottomnav-item route="/home" icon="label" label="Home">
  </mat-bottomnav-item>
</mat-bottomnav
  1. Even more declarative approach would be to do something like this:
<mat-bottomnav color="primary">
  <mat-bottomnav-item route="/home">
    <mat-icon>home</mat-icon>
    Home
  </mat-bottomnav-item>
</mat-bottomnav

As you can see there are things that need to be decided on. I can document it in the docs once you give me the edit access. Then we can decide on an approach and formalise the API.

There will be also more questions to answer such as do we allow mat-bottomnav to have other number of items than between 3 and 5. Should it be responsive and be displayed on the side on larger screens as per material guidelines.

MaciejCaputa avatar Dec 13 '17 22:12 MaciejCaputa

If you read the comments above, the latest example seems to be closes to what is preferred by the Material team, because it would be up to the user what, and how, to put inside the buttons.

I think this should be close to the current implementation of other navigation components.

michaeljota avatar Dec 14 '17 15:12 michaeljota

Curious has to how this is going, I am not sure if I should just design my own, use a proof of concept posted here or wait and use an alternative

kenji-1996 avatar Jan 19 '18 00:01 kenji-1996

Apologies to people who are waiting for this. I haven't finished the design doc and final spec, but started writing the code this weekend to test out some of the implementation ideas. I hope to have it in master before Q1 ends :smile:

pyle avatar Jan 21 '18 06:01 pyle

When it will be done, will it also apply to Material1?

mak3 avatar Mar 05 '18 15:03 mak3

@mak3 I've written alpha code in my fork that works, but still need to test etc; And it won't apply to Material1, only Material2 since it's for Angular not AngularJS

pyle avatar Mar 05 '18 17:03 pyle

@pyle can you tell us when this will be done? That kind of navigation is a must have for many people and everyone is currently building a custom solution.

@pyle can you please give us an update on this. I've looked into your existing code, which looks already promising. Since you already got so far I don't want to do another custom solution for this. It would be really nice if the material team could provide a solution for this 👍

MALIK-0 avatar Mar 17 '18 11:03 MALIK-0

@pyle how is it going, any progress? We all badly need mobile navigation and bottom navigation is a must have.

Martin-Andersen avatar Sep 11 '18 13:09 Martin-Andersen

News?

baldo12 avatar Sep 23 '18 22:09 baldo12

@pyle It's been almost 2 YEARS since this issue started, and we still don't have a bottom navbar. Why is it taking so long?

dominik-korsa avatar Oct 20 '18 12:10 dominik-korsa

Hey all, sorry for the silence but I've been pretty busy as of late (and the times before). While it has been a while since an update and since i've actually worked on this please note that I don't work on material full time (nor am i developer fulltime) and can't give as many cycles as I'd like without coding 24/7/365 :)

That being said, im going to dig up my previous code and see where I got up to. From memory I had it working no issues but needed to add some tests and polish up some of the styles.

pyle avatar Oct 23 '18 05:10 pyle

https://twitter.com/stephenfluin/status/1054499414461472768 Why is @StephenFluin requesting this, while md-bottom-nav one still on the list ?

GoNode5 avatar Oct 25 '18 10:10 GoNode5

@GoNode5 Hey there! We use multiple sources of information to try to prioritize between technical debt, refactoring, new features, new components, bugfixing, API changes, and more. Not everyone reads our GitHub issues, so combining conversations with developers, information from social media channels, and our GitHub issues & PRs gives us a more holistic picture of developer needs and wants.

StephenFluin avatar Oct 25 '18 14:10 StephenFluin

App bars: bottom Are there plans to give native support to this component? Material Guidelines image

max-SS avatar Oct 26 '18 15:10 max-SS

@max-SS that's offtopic for this thread on bottom navigation.

There is an issue for App bars: top. But I don't see one for App bars: bottom yet. Would you like to open a feature request?

Splaktar avatar Nov 09 '18 22:11 Splaktar