Skip to content

Commit 079fc6c

Browse files
committed
Tooltip: Remove deprecated tooltip class replaces with classes option
1 parent 4d9bad8 commit 079fc6c

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

tests/visual/tooltip/tooltip.html

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,14 @@
2222

2323
// custom class, replaces ui-widget-content
2424
$( "#context2" ).tooltip({
25-
tooltipClass: "ui-widget-header"
25+
classes: {
26+
"ui-tooltip": "ui-widget-header"
27+
}
2628
});
2729
$( "#right1" ).tooltip({
28-
tooltipClass: "ui-state-error"
30+
classes: {
31+
"ui-tooltip": "ui-state-error"
32+
}
2933
});
3034

3135
// synchronous content
@@ -63,7 +67,8 @@
6367

6468
// custom position
6569
$( "#right2" ).tooltip({
66-
tooltipClass: "ui-state-highlight",
70+
classes: {
71+
"ui-tooltip" : "ui-corner-all ui-state-highlight",
6772
position: {
6873
my: "center top",
6974
at: "center bottom+10"

0 commit comments

Comments
 (0)