A specialized tooltip class for tooltips that can be specified in markup.
Quicktips can be configured via tag attributes directly in markup. Below is the summary of the configuration properties which can be used.
- text (required)
- title
- width
To register a quick tip in markup, you simply add one or more of the valid QuickTip attributes. The HTML element itself is automatically set as the quick tip target.
Tag attribute options:
- qtip (required): The quick tip text (equivalent to the 'text' target element config).
- qtitle: The quick tip title (equivalent to the 'title' target element config).
- qwidth: The quick tip width (equivalent to the 'width' target element config).
Example using QuickTip tag attributes:
private void exampleQuickTip() { HTML html = new HTML("<span qtitle='Title for Tip' qtip='Display this tip.' qwidth='50px'>Some text.</span>"); new QuickTip(html); RootPanel.get().add(html); }