Long Pressed or Touch

Posted by: hoang.nguyen on 10 September 2018, 10:16 pm EST

    • Post Options:
    • Link

    Posted 10 September 2018, 10:16 pm EST

    I have a flexgrid with wj-tooltip. This is only on windows because I use mousemove and mouseout event to trigger tooltip. This will not work on mobile device because of mouse is not available. How do I trigger tooltip on mobile device? Can I utilize long pressed or touch event in substitude for mousemove and mouseout event? Thank you very much.

  • Posted 11 September 2018, 4:55 am EST

    Hi,

    You may handle touchstart and touchend events to show tooltip on touch devices. All you need to do is call tooltip’s show() method from any handler and it will be shown for the specified element.

    Please refer to the following sample which implements tooltip for touch devices(long touch a cell to show tooltip):

    https://stackblitz.com/edit/angular-bwsg1u?file=app%2Fapp.component.ts

    ~Sharad

Need extra support?

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

Learn More

Forum Channels