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->startPane('myPane');
{
echo $pane->startPanel('Panel 1', 'panel1');
echo "This is Panel 1";
echo $pane->endPanel();
echo $pane->startPanel('Panel 2', 'panel2');
echo "This is Panel 2";
echo $pane->endPanel();
}
echo $pane->endPane();
There are essentially two elements to a pane: the pane itself and the panels within
the pane. We use the methods startPane() and endPane() to signify the start and
end of the pane. When we use startPane() we must provide one string parameter,
which is a unique identifier used to identify the pane.
Panels are always created internally to a pane and use the methods startPanel()
and endPanel().
Pages:
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369