0

我的 md-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>

4

0 回答 0