md-sidenav中的折叠菜单

时间:2016-03-04 09:00:35

标签: material-design angularjs-material

我的md-sidenav中有一个菜单,如下所示:

Picture of left sidenav

如何折叠/取消列表? Angular Material是否提供任何"酷"折叠下拉的替代方案?以下是sidenav的代码:

    <md-sidenav class="site-sidenav md-sidenav-left md-whiteframe-z2"
    md-component-id="left"
    ng-click="maindataCtrl.toggleList()" aria-label="Show Language List"
    md-is-locked-open="$mdMedia('gt-sm')">

  <md-toolbar class="md-medium-tall">
    <h3>Languages</h3>
  </md-toolbar>

  <md-list>
    <md-list-item ng-repeat="item in maindataCtrl.maindata">
        <md-button ng-click="maindataCtrl.selectUser(item)" ng-class="{'selected' : item === maindataCtrl.selected }">

          {{item.language}}
        </md-button>

       <img class="flags" ng-src="{{item.flag}}"/>

    </md-list-item>
  </md-list>

  <md-button class="md-raised">Add new language</md-button>

0 个答案:

没有答案