Move the cursor to the column to display the picture
Move the cursor to the column to display the picture
lancwp
Posts: 92Questions: 21Answers: 1
in DataTables
I use the inline editing function. The table has YDH and hppic fields. The hppic field stores pictures. I want to mark and display the corresponding hppic pictures here when the cursor moves to the YDH field. How can I achieve this
Link to test case:
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem:
Answers
I want to have an event where the cursor moves into a cell and the corresponding content can be displayed. Thank you, great engineer
I'm not 100% understanding I'm afraid. Do you mean you want the content of the cell to be hidden until the mouse moves over it? You could use a
mouseenter
event for that and then update the content of the cell (cell().data()
).Allan
Do not hide cells. When the cursor moves to the cells in the column of YDH, it will automatically display the prompt picture above. Picture'S URL is the hppic field,Thanks