I load a mvc view with collapsable panels using ajax.First time all is ok but after first time when i click the collapsa button the panel collapse and then reopen.Can someone help me with this issue?
Thanks robm for the good work
memento78 () - 7 years ago - Reply 0
theres any way to make a buttom that colapse all and hide all? cool code!!
Eduardo Betancourt (iameduardo () - 8 years ago - Reply 0
nice work^^.
do you have time to fix a bug? If I click the expand button many times, it will trigger sliding animation many times too. Is it possible to ignore input while the animation isn't completed yet?
.
and also, how do i make the panel content isn't visible at the first time?
thanks. sorry for my bad english.
puntodamar () - 8 years ago - Reply 0
There's a bug. You use "parents" selector, but if there are nested panels - collapse button will collapse all panels with that class, from innermost to outermost. Use "closest" instead.
Alexander () - 9 years ago - Reply 0
maybe also check initial state so panel-body has intial state collapsed so the cheveron should be up and should know whne clicked that it should display
Wendell () - 10 years ago - Reply 0
Hi there :)
Great script so far, but how can I also hide the panel footer?
So not only panel body is hidden.
Thank you
Florian Gareis () - 10 years ago - Reply 0
Havent tried it, but couldnt you combine the body and footer as the new body?
Jose Lopez () - 9 years ago - Reply 0
Is it possible to have the panel closed from the offset and then to slide down after clicked? Thanks.
BigSnail () - 10 years ago - Reply 0
add style="display: none" to the panel-body div and class="pull-right clickable panel-collapsed" to the span in the heading :-)
Leon () - 10 years ago - Reply 0
Looks good, but its buggy.
Close Panel 2 and Panel 3 than open Panel 2. After that Panel 3 will open and Panel 4 closes ?
[BlaZZeR]BirD () - 10 years ago - Reply 0
I mean:
Close Panel 2 and Panel 4 than open Panel 2. After that Panel 4 will open and Panel 3 closes ?
Sorry ^^
[BlaZZeR]BirD () - 10 years ago - Reply 0
Thank you for pointing out my error, I've updated the snippet to fix this issue. The issue was with the row collapsing as all of the panels in the original snippet sat within the same .row container. I've now put the two sets of panels into their own rows and the issue seems to be resolved.
robm () - 10 years ago - Reply 0
Had the same problem. Changed the line below and now i can use the snippet with panels in the same row.
Changed:
$this.parents('.panel').find('.panel-body').slideUp();
to:
$this.closest('.panel').find('.panel-body').slideUp();
Bas () - 10 years ago - Reply 0