Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Changed Step 7, the PackageResourceReference is deprecated, ResourceReference isn't

...

Code Block
add(new JavaScriptReference("addEventJs", 
                             new PackageResourceReference(YourApplication.get(),
                                                          YourPage.class, 
                                                          "javascript/addEvent.js")));
add(new JavaScriptReference("sweetTitlesJs", 
                             new PackageResourceReference(YourApplication.get(),
                                                          YourPage.class,
                                                          "javascript/sweetTitles.js")));

add(new JavaScriptReference("addEventJs",
			new ResourceReference(Index.class, "javascript/addEvent.js")));
add(new JavaScriptReference("sweetTitlesJs",
			new ResourceReference(Index.class, "javascript/sweetTitles.js")));

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):

...