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

nested accordion can't do a collapseall on child accordion from parent accordion onclick #60

Open
Jack-Collins opened this issue May 17, 2016 · 1 comment

Comments

@Jack-Collins
Copy link

<v-accordion >
            <v-pane ng-repeat="pane in panes">
                <v-pane-header ng-click="accordion.collapseAll()"> {{ ::pane.name }} </v-pane-header> 
                <v-pane-content>
                <!-- nested accordion :) -->
                     <v-accordion control="accordion" ng-if="pane.rules">
                    <v-pane ng-disabled= "loading" ng-repeat="subpane in pane.rules">


                                         ......
                                   ......
                             ......


So I have a nested setup like so and I am trying to basically collapse all subpanes of a child accordion whenever the header of the parent accordion is clicked. It seems that because I have set the control attribute in the child, it is not accessible from the parent to do this collapseAll()

Is there a way around this? Thanks

@s5b
Copy link

s5b commented Nov 23, 2016

Not a solution: I have the same conceptual issue with this component. I don't know how to access the accordion control for the children inside the parent accordion either.

In my case I want to be able to open a specific child (and parent) based on the hash URL of the page - to allow deep linking into an FAQ page. This doesn't appear to be possible because I can't seem to get hold of the child accordion controls to affect the changes.

Does anybody know how to do this?

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

2 participants