Skip to content

nested tooltip with interactive: true #627

@Akshay-Hegde

Description

@Akshay-Hegde
<strong id="nesting">Hover me!</strong>

$('#nesting').tooltipster({
    content: $('<span>Hover me too!</span>'),
   interactive: true,
    functionReady: function(instance, helper){
        
        // the nested tooltip must be initialized once the first tooltip is open, that's why we do this inside functionReady()
        instance.content().tooltipster({
            content: 'I am a nested tooltip! here is long text I want to copy or read',
          interactive: true,
            distance: 0
        });
    },
    interactive: true
});

One small issue, say both tooltips are interactive, for example inner one contains long text, if you have to copy or to read from inner one, as soon as you move cursor to inner tooltip, it is closing. I hope you got my point.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions