Cell Hover Issue

Posted by: seshareddy.kamaganiguntla on 11 August 2021, 12:47 am EST

    • Post Options:
    • Link

    Posted 11 August 2021, 12:47 am EST

    I want to call some function , on hovering on a cell , but spreadjs does not provide an event listener for cellHover . Is there any alternative way to acheive this?

  • Posted 11 August 2021, 5:05 am EST

    Hi,

    For this, you may use the mouse move and mouse event. Please refer to the following code snippet and attached sample that demonstrates the same.

    
      spread.getHost().addEventListener("mousemove", e => {
        updateTooltip(spread, e, tooltip);
      });
     spread.getHost().addEventListener("mouseout", e => {
        updateTooltip(spread, e, tooltip);
      });
    
    

    sample: https://codesandbox.io/s/spread-js-starter-forked-jyn59?file=/src/index.js:656-754

    Regards,

    Avinash

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels