79524041

Date: 2025-03-20 20:49:27
Score: 0.5
Natty:
Report link

when using Admin-LTE 3.0 with AngularJS, for unknown reason catching the event expanded.lte.cardwidget failed. As an alternative, I have to add ng-click to the button

<button type="button" class="btn btn-tool" 
        data-card-widget="collapse" 
        ng-click="bbtest($event)"><i class="fas fa-minus"></i>
</button>

and bbtest function is listed below:


    bbtest(eve) {
        let box = $(eve.target).first();
        if (!box.hasClass('fa-minus')) {//expanding
                setTimeout(() => {//expansion has animation
                    console.log(`doing sth`);
                }, 500);
            }
    }

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): when
  • Low reputation (1):
Posted by: Zhenjun Hu