pnForm
[ class tree: pnForm ] [ index: pnForm ] [ all elements ]

Class: pnFormTabbedPanelSet

Source Location: /system/pnForm/plugins/block.pnformtabbedpanelset.php

Class Overview

pnFormPlugin
   |
   --pnFormTabbedPanelSet

Tabbed panel set


Variables

Methods


Inherited Variables

Inherited Methods

Class: pnFormPlugin

pnFormPlugin::pnFormPlugin()
Constructor
pnFormPlugin::create()
Create event handler
pnFormPlugin::dataBound()
DataBound event handler
pnFormPlugin::decode()
Decode event handler
pnFormPlugin::decodePostBackEvent()
Decode event handler for actions that generate a postback event
pnFormPlugin::getIdHtml()
Utility function to generate HTML for ID attribute
pnFormPlugin::initialize()
Initialize event handler
pnFormPlugin::load()
Load event handler
pnFormPlugin::postRender()
PostRender event handler
pnFormPlugin::readParameters()
Read Smarty plugin parameters
pnFormPlugin::registerPlugin()
pnFormPlugin::render()
Render event handler
pnFormPlugin::renderAttributes()
pnFormPlugin::renderBegin()
RenderBegin event handler
pnFormPlugin::renderContent()
RenderContent event handler
pnFormPlugin::renderEnd()
RenderEnd event handler

Class Details

[line 41]
Tabbed panel set

This plugin is used to create a set of panels with their own tabs for selection. The actual visibility management is handled in JavaScript by setting the CSS styling attribute "display" to "hidden" or not hidden. Default styling of the tabs is rather rudimentary but can be improved a lot with the techniques found at www.alistapart.com. Usage:

  1.  <!--[pnformtabbedpanelset]-->
  2.    <!--[pnformtabbedpanel title="Tab A"]-->
  3.      ... content of first tab ...
  4.    <!--[/pnformtabbedpanel]-->
  5.    <!--[pnformtabbedpanel title="Tab B"]-->
  6.      ... content of second tab ...
  7.    <!--[/pnformtabbedpanel]-->
  8.  <!--[/pnformtabbedpanelset]-->
You can place any pnForms plugins inside the individual panels. The tabs require some special styling which is handled by the styles in system/pnForm/pnstyle/style.css. If you want to override this styling then either copy the styles to another stylesheet in the templates directory or change the cssClass attribute to something different than the default class name.




[ Top ]


Class Variables

$cssClass =  'linktabs'

[line 47]

CSS class name for styling


Type:   string


[ Top ]

$registeredTabIndex =  1

[line 66]

Internal tab index counter


Type:   int


[ Top ]

$selectedIndex =  1

[line 53]

Currently selected tab


Type:   int


[ Top ]

$titles = array()

[line 60]

Registered tab titles


Type:   string-array


[ Top ]



Class Methods


method decode [line 132]

void decode( &$render)



Overrides pnFormPlugin::decode() (Decode event handler)

Parameters:

   &$render  

[ Top ]

method getFilename [line 69]

void getFilename( )



[ Top ]

method registerTabbedPanel [line 120]

void registerTabbedPanel( &$render, &$panel, $title)



Parameters:

   &$render  
   &$panel  
   $title  

[ Top ]

method renderContent [line 75]

void renderContent( &$render, $content)



Overrides pnFormPlugin::renderContent() (RenderContent event handler)

Parameters:

   &$render  
   $content  

[ Top ]


Documentation generated on Fri, 18 Jul 2008 21:43:12 +0200 by phpDocumentor 1.4.1