This topic contains 1 reply, has 2 voices, and was last updated by  Dimitar 9 years, 7 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Multiple tooltip triggers #63154

    fritzfrancis
    Participant

    Hello,

    Is there a way to set multiple triggers for a tooltip without having to manually do event handlers? Something like this:

                $("#tooltip-icon").jqxTooltip({
                    content: 'Hello, World!',
                    position: "right",
                    width: 250,
                    trigger: ['hover', 'click'],
                });

    The reason I want to do this is because of mobile devices. Seeing that there’s no hover for someone using a touch-device, it would be nice to have a tooltip display for any number of events, in this case, ‘hover’ and ‘click’. This way, they could just tap the tooltip-icon element and see the tooltip.

    Regards,
    Fritz

    • This topic was modified 9 years, 7 months ago by  fritzfrancis. Reason: trying out using emphasis in the code block
    • This topic was modified 9 years, 7 months ago by  fritzfrancis. Reason: Removing tag from code block
    Multiple tooltip triggers #63191

    Dimitar
    Participant

    Hello Fritz,

    On a mobile device, tooltips are triggered on “tap”, no matter if you have set trigger to “hover” or “click”. This is part of the widget’s implementation. You can test this behaviour by running the jqxTooltip mobile demo.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.