phpMv -UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
Loading...
Searching...
No Matches
Tabs Class Reference

Composant Twitter Bootstrap Tab. More...

+ Inheritance diagram for Tabs:

Public Member Functions

 __construct (JsUtils $js)
 
 getTabs ()
 
 setTabs (array $tabs)
 
 addTab ($tab)
 
 getTab ($index)
 
 show ($index)
 
 onShow ($index, $jsCode)
 This event fires on tab show, but before the new tab has been shown.
 
 onShown ($index, $jsCode)
 This event fires on tab show after a tab has been shown.
 
 onHide ($index, $jsCode)
 This event fires when a new tab is to be shown (and thus the previous active tab is to be hidden).
 
 onHidden ($index, $jsCode)
 This event fires after a new tab is shown (and thus the previous active tab is hidden).
 
- Public Member Functions inherited from SimpleExtComponent
 addEvent ($event, $jsCode)
 
 getScript ()
 
 addCode ($jsCode)
 
- Public Member Functions inherited from SimpleComponent
 attach ($identifier)
 
 on ($event, $jsCode)
 
 getAttachTo ()
 
 getItemSelector ()
 
 setItemSelector ($itemSelector)
 
- Public Member Functions inherited from BaseComponent
 setParam ($key, $value)
 
 getParam ($key)
 
 getParams ()
 
 compile (JsUtils $js=NULL)
 
 setParams ($params)
 
 addParams ($params)
 
 setDebug ($value)
 
 setVerbose ($value)
 

Protected Attributes

 $tabs
 
- Protected Attributes inherited from SimpleExtComponent
 $events =array ()
 
 $jsCodes =array ()
 
- Protected Attributes inherited from SimpleComponent
 $attachTo
 
 $itemSelector
 
 $uiName
 
 $events
 
- Protected Attributes inherited from BaseComponent
 $params =array ()
 
 $js
 

Additional Inherited Members

- Data Fields inherited from BaseComponent
 $jquery_code_for_compile =array ()
 
- Protected Member Functions inherited from SimpleExtComponent
 compileJsCodes ()
 
- Protected Member Functions inherited from SimpleComponent
 compileEvents ()
 
 _createSelector ($itemSelector, $selector)
 
 compileJQueryCode ()
 
 setParamCtrl ($key, $value, $typeCtrl)
 
- Protected Member Functions inherited from BaseComponent
 getParamsAsJSON ($params)
 

Detailed Description

Composant Twitter Bootstrap Tab.

Author
jc
Version
1.001

Definition at line 13 of file Tabs.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( JsUtils  $js)

Reimplemented from SimpleComponent.

Definition at line 20 of file Tabs.php.

Member Function Documentation

◆ addTab()

addTab (   $tab)

Definition at line 34 of file Tabs.php.

◆ getTab()

getTab (   $index)

Definition at line 38 of file Tabs.php.

◆ getTabs()

getTabs ( )

Definition at line 25 of file Tabs.php.

◆ onHidden()

onHidden (   $index,
  $jsCode 
)

This event fires after a new tab is shown (and thus the previous active tab is hidden).

Use event.target and event.relatedTarget to target the previous active tab and the new active tab, respectively.

Parameters
string$jsCode
Returns
$this

Definition at line 90 of file Tabs.php.

◆ onHide()

onHide (   $index,
  $jsCode 
)

This event fires when a new tab is to be shown (and thus the previous active tab is to be hidden).

Use event.target and event.relatedTarget to target the current active tab and the new soon-to-be-active tab, respectively.

Parameters
string$jsCode
Returns
$this

Definition at line 78 of file Tabs.php.

◆ onShow()

onShow (   $index,
  $jsCode 
)

This event fires on tab show, but before the new tab has been shown.

Use event.target and event.relatedTarget to target the active tab and the previous active tab (if available) respectively.

Parameters
int$indextab index
string$jsCode
Returns
$this

Definition at line 54 of file Tabs.php.

◆ onShown()

onShown (   $index,
  $jsCode 
)

This event fires on tab show after a tab has been shown.

Use event.target and event.relatedTarget to target the active tab and the previous active tab (if available) respectively.

Parameters
string$jsCode
Returns
$this

Definition at line 66 of file Tabs.php.

◆ setTabs()

setTabs ( array  $tabs)

Definition at line 29 of file Tabs.php.

◆ show()

show (   $index)

Definition at line 43 of file Tabs.php.

Field Documentation

◆ $tabs

$tabs
protected

Definition at line 18 of file Tabs.php.


The documentation for this class was generated from the following file: