Skip to content
Permalink
Browse files

Tooltip: Add Button to visual test page to test interoperability

  • Loading branch information
jzaefferer committed Mar 25, 2010
1 parent 8c2df20 commit 87533753f49156c1d1331d6a02e8682ae863a3c2
Showing with 18 additions and 0 deletions.
  1. +18 −0 tests/visual/tooltip/tooltip.html
@@ -8,6 +8,7 @@
<script type="text/javascript" src="../../../ui/jquery.ui.core.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.widget.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.position.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.button.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.tooltip.js"></script>
<script type="text/javascript" src="http://jqueryui.com/themeroller/themeswitchertool/"></script>
<script type="text/javascript">
@@ -53,6 +54,19 @@
},
tooltipClass: "ui-state-highlight"
});

$("#button1").button().tooltip();
$("#button2").button({
icons: {
primary: "ui-icon-wrench"
}
}).tooltip();
$("#button3").button({
icons: {
primary: "ui-icon-wrench"
},
text: false
}).tooltip();
}
enable();

@@ -120,6 +134,10 @@
</div>
</form>

<button id="button1" title="Button Tooltip">Button Label</button>
<button id="button2" title="Icon Button">Button with Icon</button>
<button id="button3">Icon Only Button</button>

<div id="footnote">This is <strong>the</strong> footnote, including other elements</div>

<button id="disable">Toggle disabled</button>

0 comments on commit 8753375

Please sign in to comment.
You can’t perform that action at this time.