Questions tagged [collapse]

This tag is deprecated and should not be used, because it lacks discriminating power. Use a tag related to the library that the collapse function belongs to instead.

This tag is deprecated and should not be used. This tag has been deprecated due to lacking discriminating power.
Instead, use a tag related to the library that the collapse function belongs to.

1621 questions
35
votes
5 answers

How to determine if a bootstrap collapse is opening or closing?

If I have a bootstrap collapse how can I determine from a click event wether the collapse is opening or closing? Here is my click event or maybe there is a better way then to use a click event? $(document).on("click", "a.register-student-link",…
user1186050
  • 10,710
  • 18
  • 92
  • 235
35
votes
3 answers

Collapsible header in Markdown to html

Our internal git-lab wiki works with Markdown. I made several summaries of articles and want to post them in our wiki, in such a way that if I click on the header, it should unfold and the text should become visible, basically like in this…
Sasha-Li
  • 353
  • 1
  • 3
  • 4
32
votes
10 answers

Bootstrap Collapse not Collapsing

I am trying to create a collapsable component using Bootstrap. My code is this
poshanniraula
  • 543
  • 1
  • 6
  • 14
27
votes
4 answers

jQuery Simple Collapsible Div?

I am looking for the proper, simple, small code to do the following things: Click on Element with Class Applied to it. DIV.CLASS - Which expands and shows hidden content. (slideDown - Toggle) DIV.CLASS - Which collapses and hides the previously…
Aaron Brewer
  • 3,363
  • 17
  • 45
  • 73
24
votes
2 answers

CollapsingToolbarLayout without shadow in expanded state

CollapsingToolbarLayout from appcompat shows shadow in collapsed state, but when expanded (or expanding in process) shadow dissapear My example code https://github.com/NaikSoftware/CollapsingToolbarWithImageAndTabs/tree/master/app Layout
23
votes
6 answers

Expand and collapse with angular js

I am trying to figure out a way to do an expand and collapse using angular js. I haven't been able to find an elegant way to do this without manipulating dom objects in the controller (which is not the angular way). Currently I have a nice way to do…
yaegerbomb
  • 1,126
  • 4
  • 22
  • 35
22
votes
4 answers

Bootstrap 3 collapse accordion: collapse all works but then cannot expand all while maintaining data-parent

I'm using Bootstrap 3 and trying to setup the following accordion/collapse structure: Onload: Each accordion panel in a group is fully collapsed and functions as documented/expected. Button click: Each accordion panel expands and clicking the…
cfx
  • 2,885
  • 2
  • 30
  • 43
22
votes
2 answers

WPF DataBound treeview expand / collapse

I'm just trying to find a way to control the expand / collapse of the TreeView nodes through the object they're bound to. The object has an IsExpanded property, and I want to use that to show the TreeView node itself expanded or collapsed based on…
Carlo
  • 24,728
  • 29
  • 124
  • 174
22
votes
3 answers

For what reason margin collapse rules were introduced in CSS?

Just can't figure out the situation when this clever set of rules can be helpful. They break the simplicity of the box model and provide infinite source of troubles when you combine different pieces of layout together. So what is the reason? Rules…
actual
  • 2,294
  • 1
  • 19
  • 32
22
votes
5 answers

Apple Push Notification Collapse Key Equivalent

When using Google push notifications, I am allowed to specify a collapse_key value so a device will not receive multiple notifications of the same collapse_key. Does APNS have a similar feature or does anyone know a way to emulate this…
David
  • 812
  • 1
  • 10
  • 26
21
votes
3 answers

Bootstrap Collapse doesn't toggle after you show, hide or toggle from code

My HTML is:
19
votes
1 answer

Collapsing margins in Android layouts

Is it possible to make margins collapse in Android? Let's say I have a LinearLayout and add three TextViews, each with an android:layout_margin of 10dp. I get the following result: However, I'd like to get this result: I know that I could…
Heinzi
  • 151,145
  • 51
  • 326
  • 481
17
votes
7 answers

Bootstrap Collapse - Expand All

I've implemented Bootstrap 3 Collapse. The client wants all of the target blocks to expand when any one of the heading links is clicked. I have tried to implement a modified version of this answer, but can't get it working. How can I get all target…
pedalGeoff
  • 707
  • 1
  • 7
  • 15
17
votes
8 answers

How to add 'collapse' to a Django StackedInline

In the same way you can add 'classes': ['collapse'] to one of your ModelAdmin fieldsets, I'd like to be able to have an Inline Model Admin be collapsible. This ticket, Collapse in admin interface for inline related objects, discusses exactly what I…
Daniel Rhoden
  • 5,977
  • 6
  • 23
  • 28
17
votes
3 answers

Bootstrap 3 collapse can have multiple panels open after programmatically opening a panel

I have a problem with bootstrap 3 collapse, after opening a panel programmatically it is possible to keep another panel open while reopening the first panel. My HTML:
Moolie
  • 539
  • 1
  • 7
  • 16