|
PHP2Go Javascript Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object
|
+--Widget
|
+--TabView
Defined in widgets/tabview.js
| Field Summary | |
TabPanel |
activeTab
Active tab |
Object |
contentContainer
Tabs container element |
Object |
navContainer
Navigation bar's container element |
Object |
navScroll
Layer that surrounds the navigation container element |
Object |
root
Root element |
Array |
tabs
Tab panels |
<static> Object |
instances
Holds existent TabView instances, indexed by widget ID. |
| Fields inherited from class Widget |
attributes
|
| Constructor Summary | |
TabView
(<Object> attrs, <Function> func)
TabView provides control over a set of tab panels (tabbed views). |
|
| Method Summary | |
<private> void
|
_changeActiveState(<TabPanel> tab, <Boolean> state)
Changes active state of a given tab |
<private> void
|
_clickHandler(<Event> e)
Handles click event on tab labels |
<private> void
|
_initArrows()
Initializes scroll arrows |
<private> void
|
_loadContents(<TabPanel> tab)
Loads content into a tab using AJAX |
<private> void
|
_updateArrows()
Updates scroll arrows visibility state |
TabPanel
|
addTab(<TabPanel> tab, <Number> idx)
Adds a new tab panel |
Number
|
getActiveIndex()
Get active tab index |
TabPanel
|
getActiveTab()
Get active tab |
TabPanel
|
getTabById(<String> id)
Get a tab given its id |
TabPanel
|
getTabByIndex(<Number> idx)
Get a tab given its index |
Number
|
getTabIndex(<TabPanel> tab)
Get the index of a given tab |
TabPanel
|
removeTab(<TabPanel> tab)
Removes a given tab panel |
TabPanel
|
removeTabByIndex(<Number> idx)
Removes a tab panel given its index |
void
|
setActiveIndex(<Number> idx)
Set active tab index |
TabPanel
|
setActiveTab(<TabPanel> tab)
Set active tab |
void
|
setup()
Initializes the widget |
| Methods inherited from class Widget |
hasAttributes
|
| Field Detail |
TabPanel activeTab
Object contentContainer
Object navContainer
Object navScroll
Object root
Array tabs
<static> Object instances
| Constructor Detail |
TabView(<Object> attrs, <Function> func)
attrs - Widget's attributes
func - Setup function
| Method Detail |
<private> void _changeActiveState(<TabPanel> tab, <Boolean> state)
tab - Tab panel
state - Active state
<private> void _clickHandler(<Event> e)
e - Event
<private> void _initArrows()
<private> void _loadContents(<TabPanel> tab)
tab - Tab panel
<private> void _updateArrows()
TabPanel addTab(<TabPanel> tab, <Number> idx)
tab - New tab
idx - Index where tab must be added
Number getActiveIndex()
TabPanel getActiveTab()
TabPanel getTabById(<String> id)
id - Tab ID
TabPanel getTabByIndex(<Number> idx)
idx - Index
Number getTabIndex(<TabPanel> tab)
tab - Tab panel
TabPanel removeTab(<TabPanel> tab)
tab - Tab to remove
TabPanel removeTabByIndex(<Number> idx)
idx - Tab index
void setActiveIndex(<Number> idx)
idx - Tab index
TabPanel setActiveTab(<TabPanel> tab)
tab - Tab to activate
void setup()
|
PHP2Go Javascript Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||