Topic: Make Popconfirm work without any html element
shellxsoftware free asked 2 years ago
Basically when you open a popconfirm you need the HTML element which is opening it (usually a button). But the parameter cannot be nulled: what if we want to open a popconfirm modal without any HTML element ? So we can open one on the fly without event.
Arkadiusz Idzikowski staff answered 2 years ago
@shellxsoftware This problem was fixed in v1.6.0, the target parameter is now optional in modal mode, you should be able to open the popconfirm using this syntax:
open(component, undefined, config)
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- ForumUser: Free
- Premium support: No
- Technology: MDB Angular
- MDB Version: MDB5 1.3.0
- Device: --
- Browser: --
- OS: --
- Provided sample code: No
- Provided link: No
Arkadiusz Idzikowski staff commented 2 years ago
@shellxsoftware It might be a good idea to make the target parameter optional for the modal display mode. We will discuss that with our design team and consider adding to the library in the near future.
shellxsoftware free commented 2 years ago
any news?any news?any news?
Mbanolas free commented 2 years ago
An alternative could be to add the code of popconfirm, add class d-none to hide it and then to launch a click event https://mdbootstrap.com/snippets/standard/miguel_angel_banolas/3596902#js-tab-view