DUE TO SPAM, SIGN-UP IS DISABLED. Goto Selfserve wiki signup and request an account.
...
| Code Block |
|---|
add(new JavaScriptReference("addEventJs",
new ResourceReference(YourClass.class, "javascript/addEvent.js")));
add(new JavaScriptReference("sweetTitlesJs",
new ResourceReference(YourClass.class, "javascript/sweetTitles.js")));
|
Alternatively, you can just add these 2 lines to your Wicket's Panel or WebPage without touching the HTML i.e. skip Step 6,
| Code Block |
|---|
// for Wicket 1.4
add(JavascriptPackageResource.getHeaderContribution("javascript/addEvent.js"));
add(JavascriptPackageResource.getHeaderContribution("javascript/sweetTitles.js"));
// for Wicket 1.3.x
add(HeaderContributor.forJavaScript("javascript/addEvent.js"));
add(HeaderContributor.forJavaScript("javascript/sweetTitles.js"));
|
Step 9: Remove element's text from the tip
Change
| Code Block |
|---|
display:block |
to
| Code Block |
|---|
display:none |
in the CSS selector
| Code Block |
|---|
div#toolTip p em |
if you want to remove the text from targeted element e.g.
| Code Block |
|---|
<a> |
Step 8: Add the tooltip
Add the attribute "showtooltip" to the element that should show a tooltip (only elements with this attibute will show tooltips):
...