Chapter 15. Application Widgets
This chapter systematically works through all of the
general-purpose application widgets provided in Dijit. In many ways,
these are some of the most exciting dijits provided by the toolkit
because they're not as familiar as form elements and, unlike the
enabling layout dijits, they provide tremendous interactive
functionality. ProgressBar, Toolbar, Editor, and Tree are just a few of the exciting dijits
that are coming up. Chances are, you'll witness some of some highest
quality DHTML hacking you've ever seen in this chapter—especially as we
near the end of it.
Tip
Although not explicitly called out in all cases, the widgets in this chapter are fully accessible, as are all other widgets in Dijit.
Tooltip
Tooltips are a great means of providing user assistance for the
context of a particular control on the page, and although the ordinary
HTML title attribute is a good
start for applications circa 1990, the current era of web applications
calls for a richer variation of a tooltip. The Tooltip dijit does just that, providing the
ability to display arbitrary HTML markup instead of a plain old
snippet of text. Although you got a preview of Tooltip with ValidationTextBox and its descendants in a
previous chapter, you'll be pleased to know that you can now use
Tooltip as a standalone.
Consider Example 15-1, which
captures some of the key features of a Tooltip, producing the results shown in
Figure 15-1.
Example 15-1. Typical Tooltip usage
One <span id="one">fish</span>, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access