Button (inside toolbar) attach popup object

I often see that ‘popup’ can trigger the display in the button click event of HTML itself (using popup.show (’#id’)), so how to trigger reality in the button click event in toolbar? (because it is not the id in the HTML tag, popup.show (?) cannot be used.)

Coul you please, clarify your issue in details?

Hi, please browse the picture below, thanks.Snipaste_2022-04-01_21-13-22

@AsukaSNO see if this snippet will get you started.
https://snippet.dhtmlx.com/dxzdapin

If you have multiple buttons you want it to show the popup for, you can modify the querySelector to fill in the id of the clicked button instead of the static button ID.

1 Like

Please, try to use the following solution:
https://snippet.dhtmlx.com/yrlfydxv

1 Like

That’s useful, thank you very much!