JPane class types include 'Tabs' and 'Sliders'.
Sliders implement the mootools accordian effect. Examples are the Joomla Admin parameters settings. Tabs also implement mootools (but in which degree?)
startPane and endPane() require a string identifier.
JPanes contain Panels
startPanel() and endPanel() require name and ID parameters.
You can set some options in the getInstance method.
startOffset: The default tab to start with onActive: Another function to use when making a tab active (??) onBackground: Another function to use when making a tab dissapear (??)
$pane =& JPane::getInstance('tabs', array('startOffset'=>2)); //'tabs' or 'sliders' //2: starting with third tab as the default / open one! echo $pane->startPane( 'pane' ); echo $pane->startPanel( 'Example Panel 1', 'panel1' ); echo "This is panel1"; echo $pane->endPanel(); echo $pane->startPanel( 'Example Panel 2', 'panel2' ); echo "This is panel2"; echo $pane->endPanel(); echo $pane->endPane();
Also notice that the setCookies in the comments in the code or on the api, do NOT seem to be implemented