display the original image in the pop-up modal box

display the original image in the pop-up modal box

lancwplancwp Posts: 90Questions: 20Answers: 1
edited January 11 in Editor

I want to click on a column with an image in the editor to display the original image in the pop-up modal box. Is there a similar example that I can refer to?

If it could be implemented, it would be very useful for me because the images in the table are too small, which may be necessary for many people

Link to test case:
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem:

Answers

  • allanallan Posts: 63,445Questions: 1Answers: 10,465 Site admin

    It can certainly be done, but it isn't something that is built into Editor. What to do is have a thumbnail or link display in the table and add an event listener to it, that when clicked will open the full size image in a lightbox. You might want to use a library such as popper.js to show the lightbox with the image in it.

    Allan

Sign In or Register to comment.