Topic: Listen for specific popconfirm

theotherguy priority asked 4 years ago


Expected behavior How can tell which pop confirm Im confirming if there is more than one?

Thanks Actual behavior

Resources (screenshots, code snippets etc.)

document.addEventListener('cancel.mdb.popconfirm', function(){ //Your code goes here });


Mikołaj Smoleński staff answered 4 years ago


You have to add event listeners to each poconfirm element separately. I made a snippet which shows how to do that correctly:

https://mdbootstrap.com/snippets/standard/mikolaj-smolenski/2457696

Best regards


theotherguy priority commented 4 years ago

I appreciate your time. I realize that actually developers know a lot of these beginner questions. Thanks again.



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: 1.0.0
  • Device: any
  • Browser: any
  • OS: any
  • Provided sample code: No
  • Provided link: No