Framework
3.9
|
The TabBar class is a user-interface control that manages 2 lines of tabs for multi-page dialogs. More...
Public Member Functions | |
TwoLevelTabBar ($tabs, $qs) | |
setFlags ($flags) | |
setStates ($states) | |
getNextPage () | |
Get the next page in the tab list after the current page. More... | |
findPage ($page) | |
Finds the tab containing the specified URL. More... | |
drawHorizontalCheckList () | |
setColor ($color) | |
Public Member Functions inherited from TabBar | |
TabBar ($id, $tabs, $queryString="", $useQueryString=true, $showNumber=false) | |
Construct a new TabBar control. More... | |
preserveQueryString () | |
Preserve the current query string in tab links. More... | |
dynamicLoad ($container) | |
writeScript () | |
writeHTML () | |
Writes the HTML for this control to standard output. More... | |
appendQueryString ($url, $qs) | |
Appends a query string to the supplied URL. More... | |
getPage ($idx, $appendQueryString=true) | |
Return the URL for the page at the specified tab index. More... | |
next () | |
Move to the next page in the tab list. More... | |
drawCheckList () | |
drawCheckListEntry ($title, $form) | |
setDefaultStateImage ($img) | |
Additional Inherited Members | |
Public Attributes inherited from TabBar | |
$id | |
The DOM ID of the TabBar container element. More... | |
$tabs = array() | |
The tab records in this tab bar. More... | |
$queryString = null | |
The query string parameters to append to the navigation links. More... | |
$useQueryString = true | |
Whether a query string is being used as the navigation key. More... | |
$page = "" | |
The current page (for display purposes). This can be set explicitly to force the correct tab display when in a sub-page, for instance. More... | |
$showNumber | |
True to display the step number, false if not. More... | |
$states = array() | |
Array of display states to apply, indexed by tab. More... | |
$flags = array() | |
Array of flags to apply, indexed by tab. More... | |
$anchor = "" | |
Anchor name to generate (leave empty for no anchor tag) More... | |
$cssClass = "" | |
CSS class to apply to the top level container for the tabs. More... | |
$defaultStateImage | |
Image to show in the default tab state. More... | |
$showStates = true | |
true to show tab states, false to ignore them More... | |
$dynamic = false | |
true to indicate dynamic (AJAX-based) loading More... | |
$container = "" | |
The DOM ID of the container that will contain dynamically loaded content. More... | |
$dynamicLoadHandler = null | |
Javascript function to call to handle dynamic content load (optional) More... | |
$dynamicLoadFirstTab = true | |
By default, dynamically loaded tab bars will do a request for the content of the first tab on page load. Set to false to disable this. More... | |
$disabled = false | |
Set to true to generate disabled tab navigation. More... | |
The TabBar class is a user-interface control that manages 2 lines of tabs for multi-page dialogs.
Example code the include file calling script: $tabs = getTabs(); $qs = ($key) ? "{primary key}=$key" : ""; $tabBar = new TwoLevelTabBar($tabs, $qs); $tabBar->setStates(array("submitted" => "{icon path}")); $tabBar->setDefaultStateImage("{icon_path}");
return $tabBar;
function getTabs() {
$tabs = array( "First Top Level Tab" => array( "First Lower Tab" => "{identifier}", "Second Lower Tab" => "{identifier"), "2nd Top Level Tab" => array( "Lower tab" => "{identifier", "Lower tab" => "{identifier") ); return $tabs;
}
Definition at line 547 of file tab_bar.inc.
TwoLevelTabBar::drawHorizontalCheckList | ( | ) |
Definition at line 643 of file tab_bar.inc.
TwoLevelTabBar::findPage | ( | $page | ) |
Finds the tab containing the specified URL.
$page | The page to find |
Reimplemented from TabBar.
Definition at line 622 of file tab_bar.inc.
TwoLevelTabBar::getNextPage | ( | ) |
Get the next page in the tab list after the current page.
Reimplemented from TabBar.
Definition at line 590 of file tab_bar.inc.
TwoLevelTabBar::setColor | ( | $color | ) |
Definition at line 713 of file tab_bar.inc.
TwoLevelTabBar::setFlags | ( | $flags | ) |
Definition at line 563 of file tab_bar.inc.
TwoLevelTabBar::setStates | ( | $states | ) |
Definition at line 576 of file tab_bar.inc.
TwoLevelTabBar::TwoLevelTabBar | ( | $tabs, | |
$qs | |||
) |
Definition at line 549 of file tab_bar.inc.