Bootstrap has convenient events that fire when the .collapse classes are used properly. When using AdminLTE expandable boxes, I was hoping I could do something similar so that I could deactivate the rendering inside the box when it is fully collapsed and reactivate the rendering when it is fully open.
I tried using events from here , for example, show.bs.collapse or hidden.bs.collapse, following their example:
$('#myCollapsible').on('hidden.bs.collapse', function () {
})
But after entering this event, it seems that the AdminLTE precast blocks do not fire these events. I searched to see if there are similar events for the AdminLTE plug-in, but it does not seem to exist. I also looked to see if I could make a listener when the flattened box class is added to the div in question, but this is not an option, as solutions assume you release this event yourself. Unfortunately, I do not control when the class is added.
Does anyone have a solution? Thanks in advance!
source
share