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

Show/Hide Code

Supported from version: 1.0.0.0

scrollEnableTop

bool scrollEnable

Get or set whether scrollbar is displayed when needed.

Show/Hide Code

Supported from version: 1.0.0.0

selectedIdTop

string selectedId

Get or set selected child of slidemenu.

Show/Hide Code

Supported from version: 1.0.0.0

selectEnableTop

bool selectEnable

Get or set whether slidemenu allow selection

Show/Hide Code

Supported from version: 1.0.0.0

singleExpandTop

bool singleExpand

Get or set whether slidemenu keeps single node expand

Show/Hide Code

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.

Show/Hide Code

Supported from version: 1.0.0.0

styleFolderTop

string styleFolder

Get or set folder which contain css style for slidemenu.

Show/Hide Code

Supported from version: 1.0.0.0

widthTop

string width

Get or set the width for slidemenu

Show/Hide Code

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.

Show/Hide Code

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.

Show/Hide Code

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.

Show/Hide Code

Supported from version: 1.0.0.0

loadXMLTop

void loadXML(string $xml)

Build slidemenu from xml string.

Show/Hide Code

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.

Show/Hide Code

Supported from version: 1.0.0.0

RenderTop

string Render()

Render the Slidememu

Show/Hide Code

Supported from version: 1.0.0.0

RegisterScriptTop

string RegisterScript()

Return html to register js library for autocomplete.

Show/Hide Code

Supported from version: 1.0.0.0

RegisterCSSTop

string RegisterCSS()

Return html to register CSS for autocomplete

Show/Hide Code

Supported from version: 1.0.0.0

RenderSlideMenuTop

string RenderSlideMenu()

Return html content of KoolSlideMenu body

Show/Hide Code

Supported from version: 1.0.0.0

StartupScriptTop

string StartupScript()

Return js code to inititate autocomplete

Show/Hide Code

Supported from version: 1.0.0.0