This is a migrated thread and some comments may be shown as answers.

atatching multiple "filter" tooltips to the body

3 Answers 1457 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Diane
Top achievements
Rank 1
Diane asked on 01 May 2013, 04:56 PM
I am working on a backbone based single page application and having trouble with the tooltips. I figured using the "filter" option would be the best method so I currently have something like 
$('body').kendoTooltip({
    filter : ".tooltip"
});
$('body').kendoTooltip({
    filter : ".bookmark",
    content : "bookmark"
});
I'm not sure but it seems as though all the tooltips break after a a new view is loaded even though the body is not changed, only some parts inside it.

Also I notice that when I look out $('body').data() there only seems to be whatever the last tooltip I bound so in the above instance I see options.filter : ".bookmark" but not ".tooltip". 

Maybe I'm missing something obvious but all help is appreciated

Thanks

3 Answers, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 02 May 2013, 05:59 AM
Hello Diane,

I'm afraid that having multiple Tooltip widgets attached to a single element is not supported. You may consider combining the filter:

$('body').kendoTooltip({
    filter : ".tooltip, .bookmark"
});

or attaching the Tooltips to separate container elements.Greetings,
Rosen
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Diane
Top achievements
Rank 1
answered on 02 May 2013, 09:37 PM
Thanks! Combining filter will probably do the trick. 
0
Sankar
Top achievements
Rank 1
answered on 07 Nov 2013, 05:52 PM

$('body').kendoTooltip({
    filter : ".tooltip"
});

This works perfectly for filter based on class. Thanks for the reply!!!

Tags
ToolTip
Asked by
Diane
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Diane
Top achievements
Rank 1
Sankar
Top achievements
Rank 1
Share this question
or