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

Auto-collapse when a different panel is opened #43

Open
dekyfin opened this issue Aug 17, 2017 · 3 comments
Open

Auto-collapse when a different panel is opened #43

dekyfin opened this issue Aug 17, 2017 · 3 comments

Comments

@dekyfin
Copy link

dekyfin commented Aug 17, 2017

This is a feature request rather than a bug. It would be great if a panel will automatically collapsed when another panel is opened.

@touficbatache
Copy link

+1

@touficbatache
Copy link

@dekyfin If you know a little JS, it's pretty easy to implement.

@Voziv
Copy link

Voziv commented Jan 9, 2018

<md-expansion-panel-group md-component-id="panelGroup">
  <md-expansion-panel md-component-id="panelOne">
    <md-expansion-panel-collapsed></md-expansion-panel-collapsed>
    <md-expansion-panel-expanded>
      <md-expansion-panel-header></md-expansion-panel-header>
      <md-expansion-panel-content></md-expansion-panel-content>
      <md-expansion-panel-footer></md-expansion-panel-footer>
    </md-expansion-panel-expanded>
  </md-expansion-panel>

  <md-expansion-panel md-component-id="panelTwo">
    <md-expansion-panel-collapsed></md-expansion-panel-collapsed>
    <md-expansion-panel-expanded>
      <md-expansion-panel-header></md-expansion-panel-header>
      <md-expansion-panel-content></md-expansion-panel-content>
      <md-expansion-panel-footer></md-expansion-panel-footer>
    </md-expansion-panel-expanded>
  </md-expansion-panel>
</md-expansion-panel-group>

This markup seems to do exactly that. Not sure if this is a recent addition as I just started using angular-material-expansion-panel today.

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

No branches or pull requests

3 participants