-
Book Overview & Buying
-
Table Of Contents
Mastering Joomla! 1.5 Extension and Framework Development Second Edition
Joomla! includes mootools—a powerful compact JavaScript framework. Mootools enables us to do many things, but it is used extensively in Joomla! to create client-side effects. Some of these, such as the accordion, are accessible through Joomla! classes. Others require special attention.
In some instances it may be necessary to manually add the mootools library to the document. We can do this using the JHTML behavior.mootools type:
JHTML::_('behavior.mootools');A pane is an XHTML area that holds more than one set of information. There are two different types of panes:
Tabs: Tabs provides a typical tabbed area with tabs to the top that are used to select different panes.
Sliders: Sliders, based on the mootools accordion, are vertical selections of headings above panels that can be expanded and contracted.
We use the JPane class to implement panes. This example demonstrates a basic tabular pane with two panels:
$pane =& JPane::getInstance('Tabs');
echo $pane...
Change the font size
Change margin width
Change background colour