KoolSlideMenu Class [PHP]
Summary
Properties | Description | |
boxHeight | Get or set the fixed height of slidemenu's childboxes | |
scrollEnable | Get or set whether scrollbar is displayed when needed. | |
selectedId | Get or set selected child of slidemenu. | |
selectEnable | Get or set whether slidemenu allow selection | |
singleExpand | Get or set whether slidemenu keeps single node expand | |
slidingSpeed | Get or set the sliding speed of slidemenu. | |
styleFolder | Get or set folder which contain css style for slidemenu. | |
width | Get or set the width for slidemenu |
Methods | Description | |
addParent | Create another parent and add it to a existed slidemenu parent. | |
addChild | Create a child and add it to a slidemenu parent. | |
addPanel | Create a panel and add it to a slidemenu parent. | |
loadXML | Build slidemenu from xml string. | |
getItem | Get the menu item object. | |
Render | Render the Slidememu | |
RegisterScript | Return html to register js library for autocomplete. | |
RegisterCSS | Return html to register CSS for autocomplete | |
RenderSlideMenu | Return html content of KoolSlideMenu body | |
StartupScript | Return js code to inititate autocomplete |
Properties Detail
boxHeightTop
int boxHeight
Get or set the fixed height of slidemenu's childboxes
Supported from version: 1.0.0.0
scrollEnableTop
bool scrollEnable
Get or set whether scrollbar is displayed when needed.
Supported from version: 1.0.0.0
selectedIdTop
string selectedId
Get or set selected child of slidemenu.
Supported from version: 1.0.0.0
selectEnableTop
bool selectEnable
Get or set whether slidemenu allow selection
Supported from version: 1.0.0.0
singleExpandTop
bool singleExpand
Get or set whether slidemenu keeps single node expand
Supported from version: 1.0.0.0
slidingSpeedTop
slidingSpeed
Get or set the sliding speed of slidemenu. This is the number of pixel that slidemenu move in a 15ms time frame.
Supported from version: 1.0.0.0
styleFolderTop
string styleFolder
Get or set folder which contain css style for slidemenu.
Supported from version: 1.0.0.0
Methods Detail
addParentTop
SlideMenuParent addParent(string $parentid, string $id, string $text, [string $link], [bool $expand])
Create another parent and add it to a existed slidemenu parent.
Supported from version: 1.0.0.0
addChildTop
SlideMenuChild addChild(string $parentid, string $id, string $text, [string $link])
Create a child and add it to a slidemenu parent.
Supported from version: 1.0.0.0
addPanelTop
SlideMenuPanel addPanel(string $parentid, string $id, string $text)
Create a panel and add it to a slidemenu parent.
Supported from version: 1.0.0.0
loadXMLTop
void loadXML(string $xml)
Build slidemenu from xml string.
Supported from version: 1.0.0.0
getItemTop
[SlideMenuParent], [SlideMenuChild], [SlideMenuPanel] getItem(string $id)
Get the menu item object. The return object can be SlideMenuParant, SlideMenuChild or SlideMenuPanel.
Supported from version: 1.0.0.0
RegisterScriptTop
string RegisterScript()
Return html to register js library for autocomplete.
Supported from version: 1.0.0.0
RegisterCSSTop
string RegisterCSS()
Return html to register CSS for autocomplete
Supported from version: 1.0.0.0
RenderSlideMenuTop
string RenderSlideMenu()
Return html content of KoolSlideMenu body
Supported from version: 1.0.0.0
StartupScriptTop
string StartupScript()
Return js code to inititate autocomplete
Supported from version: 1.0.0.0