We must provide the startPanel() method with two parameters,
the name, which appears on the tab, and the panel ID.
??? ???
Chapter 9
[ 269 ]
This is a screenshot of the pane created from the given example code:
Had we wanted to create a slider pane instead of a tab pane when we used the
getInstance() method, we would need to have supplied the parameter Sliders
instead of Tabs. This is a screenshot of the same pane as a slider:
Panes are used extensively in Joomla!
As a general rule, tabs are used for settings and sliders are used
for parameters.
Tooltips
Tooltips are small boxes with useful information in them that appear in response
to onmouseover events. They are used extensively in forms to provide more
information about fields and their contents.
In the previous chapter, we discussed the use of JHTML. We use JHTML to render
tips easily. There are two types that we use:
behavior.tooltip is used to import the necessary JavaScript to enable
tooltips to work and it does not return anything. We only ever need to call
this type once in a page.
Pages:
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370