KoolTabs Class [PHP]
Summary
Properties | Description | |
align | Get or set the alignment of tabs. | |
height | Get or set the height of KoolTabs. | |
id | Get or set the id for KoolTabs. | |
position | Get or set the position of KoolTabs. | |
scriptFolder | Get or set folder which contain core file "kooltabs.php". | |
scroll | Get or set the scrollment of tabs. | |
styleFolder | Get or set folder which contain css style for KoolTabs. | |
width | Get or set the width of KoolTabs. |
Methods | Description | |
addTab | Add new tab to KoolTabs list | |
addBreak | Add break between tabs. | |
LoadXML | Create KoolTabs from XML. | |
Render | Render the KoolTabs | |
RegisterScript | Return html to register js library for KoolTabs. | |
RegisterCSS | Return html to register CSS for KoolTabs | |
RenderTabs | Return html content of KoolTabs body | |
StartupScript | Return js code to inititate KoolTabs |
Properties Detail
alignTop
align
Get or set the alignment of tabs. This alignment is only effective with "top" and "bottom" position style of KoolTabs.
Default value : "left"
Allowed values :
- "left" : KoolTabs align tab from the left.
- "right" : KoolTabs align tabs from the right.
- "center" : KoolTabs align tabs in the center.
- "justify" : KoolTabs fills tabs in all available space.
Supported from version: 1.0.0.0
heightTop
string height
Get or set the height of KoolTabs.
Default value : auto
Supported from version: 1.0.0.0
idTop
string id
Get or set the id for KoolTabs. This id will be use as variable name of KoolTabs at client-side.
Supported from version: 1.0.0.0
positionTop
string position
Get or set the position of KoolTabs.
Default value : "top"
Allowed values :
- "top" : KoolTabs show top style tabs.
- "left" : KoolTabs show left tabs style.
- "bottom" : KoolTabs show bottom tabs style.
- "right" : KoolTabs show right tabs style.
Supported from version: 1.0.0.0
scriptFolderTop
string scriptFolder
Get or set folder which contain core file "kooltabs.php". Normally the path to script folder is automatically added, however in some cases you may need to set it manually.
Supported from version: 1.0.0.0
scrollTop
string scroll
Get or set the scrollment of tabs. This scrollment is only effective with "top" and "bottom" position style of KoolTabs.
Default value : "hidden"
Allowed values :
- "hidden" : No scrolling will be shown.
- "left" : Both scrolling arrows align to left.
- "right" : Both scrolling arrows align to right.
- "middle" : Left-scrolling arrow align to left-hand side and right-scrolling arrow aligns to the right-hand side.
Supported from version: 1.0.0.4
styleFolderTop
styleFolder
Get or set folder which contain css style for KoolTabs.
Supported from version: 1.0.0.0
widthTop
string width
Get or set the width of KoolTabs.
Default value : auto
Supported from version: 1.0.0.0
Methods Detail
addTabTop
KoolTabsItem addTab(string $parentid, string $id, string $text, [string $link], [string $selected], [string $enabled], [string $width], [string $height])
Add new tab to KoolTabs list
Supported from version: 1.0.0.0
addBreakTop
void addBreak(string $parentid)
Add break between tabs. The next tab will show in the new line.
Supported from version: 1.0.0.0
LoadXMLTop
function LoadXML(string xml)
Create KoolTabs with XML content. The input value may be string or XmlDocument.
Supported from version: 1.2.0.0
RegisterScriptTop
string RegisterScript()
Return html to register js library for KoolTabs.
Supported from version: 1.0.0.0
RegisterCSSTop
string RegisterCSS()
Return html to register CSS for KoolTabs
Supported from version: 1.0.0.0
RenderTabsTop
string RenderTabs()
Return html content of KoolTabs body
Supported from version: 1.0.0.0
StartupScriptTop
string StartupScript()
Return js code to inititate KoolTabs
Supported from version: 1.0.0.0