I am working with websockets to have multiple people edit the same sheet at the same time. To mark which cell each person is working on, I simply send a websocket request inside afterSelection()
. I then use this information to set colored borders on the cell, as well as show the name of the person using tippy.js.
Now the problem I am facing is that the binding of tippy requires the cell to exist, which it does not if the user has scrolled to a different part of the sheet. Is there a clever way to perhaps bind the data to the cell as meta and the trigger the tooltip when the cell comes into view? I was hoping for some kind of scrollspy perhaps, but have had no luck.
There is also the afterScrollVertically()
event but I am unsure how to get he cells on screen (the closest I have found is countVisibleRows()