Covalent: (feature) implement "mode" in Nav View layout

Created on 28 Apr 2017  路  8Comments  路  Source: Teradata/covalent

The Layout "Nav View" is not implementing the "mode" attribute ('over' and 'side'), useful for tablet and desktop viewports.
Would greatly help to have it, fits with material specifications (see sidenav of angular-material and materializecss) and is better for small/medium projects that doesn't need the double-navbar given by using td-layout-manage-list.

pattern

Most helpful comment

Hi @drakelovesbarbie & @elmartino i made a quick plunker to show that you can do the Google Contacts style left nav with our current nav-view override and material's sidenav

(we still plan on adding the inputs for mode, opened, and width on nav-view btw)

http://plnkr.co/edit/wtxo9AoZTi6DXJXrxIX4?p=preview
covalent-contacts

All 8 comments

+1 for this one. See https://contacts.google.com for example

Gonna have to brainstorm with the team a bit about this. The implementation is trivial, but want to see if we can create something reusable for other layouts.

Hi @drakelovesbarbie & @elmartino i made a quick plunker to show that you can do the Google Contacts style left nav with our current nav-view override and material's sidenav

(we still plan on adding the inputs for mode, opened, and width on nav-view btw)

http://plnkr.co/edit/wtxo9AoZTi6DXJXrxIX4?p=preview
covalent-contacts

Looks good! I will try! Thanks!

Works very good! Thanks!

linking to PR #609 although the plnkr from @kyleledbetter is a slightly different idea but seeing as this also links to #581

the above can be seen in the Aviva Insurance design
image

and the one the PR is the default-ish style like below.

Nice job on these :+1:

Yessir. One is more of a pattern with a mix of td-layout-nav + md-sidenav and the other one is the flexibility to make td-layout achieve the second one 馃槃

Closing this since with the last PR https://github.com/Teradata/covalent/pull/657 we can achieve this by having this

<td-layout-nav toolbarTitle="Title">
  <button md-icon-button td-menu-button (click)="sidenavLayout.toggle()">
    <md-icon>menu</md-icon>
  </button>
  <td-layout-manage-list #sidenavLayout>
    <md-nav-list td-sidenav-content>
      <md-list-item>
        <md-icon md-list-icon>home</md-icon> Home
      </md-list-item>
      <md-list-item>
        <md-icon md-list-icon>docs</md-icon> Docs
      </md-list-item>
    </md-nav-list>
    Content
  </td-layout-manage-list>
</td-layout-nav>
Was this page helpful?
0 / 5 - 0 ratings

Related issues

iceman3000 picture iceman3000  路  4Comments

mailok picture mailok  路  3Comments

gozeon picture gozeon  路  4Comments

jengstrm picture jengstrm  路  5Comments

victorboissiere picture victorboissiere  路  5Comments