Popover and Dynamic Click events within

Putting together a popover that will have, within it, an onclick dynamic event that will load a modal. Onclick has no action that I can see, is this possible to do?

<td dmx-bs-popover="'<p  dmx-on:click=&quot;modal_bills.show()&quot;>Action</p>'" data-bs-animation="false" data-bs-html="true"><span ><i class="fa-solid fa-ellipsis-vertical fa-2x"></i></span></td>

I don’t think dmx-on:click will work in that manner.
But, you can try setting data-bs-toggle="modal" data-target="modal_bills" instead.

Or, if that fails as well, just use JS onclick to open the modal: https://getbootstrap.com/docs/5.2/components/modal/#via-javascript

1 Like