Accordion Component


#1

hello, This is my first post and I find ionic intriguing and looking forward to use it in one of my projects.

While studying ionic, I couldn’t find an accordion component. Is it not really available yet or am I missing something ?
What I wanted to do is to create a List containing Sub lists, But as I couldn’t find a way to do that, I looked for accordion.


Example list and details page
#2

You can easily create this your self using css and ng-click until ionic makes their own implementation. What I did is set the max-height:0px then on click I call a function in the controller that sets max-height: none if I remember correctly.


#3

@kettlepopper, It Is really a good idea.I will give it a try. Thank You !


#4

Well, you’ve asked this a lot of time ago, wonder if interested: i’ve wrote this directive: http://codepen.io/badpenguin/pen/MyJEvy