KoolTreeView Class [PHP]
Summary
Properties | Description | |
DragAndDropEnable | Get or set whether tree allow drag and drop. | |
dragDisableIds | Get or set list of drag-disable tree nodes | |
dropDisableIds | Get or set list of drop-disable tree nodes | |
editDisableIds | Get or set list of edit-disable tree nodes | |
EditNodeEnable | Get or set whether tree allow drag and drop. | |
height | Get or set the height for treeview | |
imageFolder | Get or set folders which contain image resource for treeview | |
isSubTree | Set to true if current tree is under subtree request. | |
keepState | Get or set how treeview will keep its state in cookie. | |
keepStateHours | Get or set the number of hours that treeview state will be kept in cookie. | |
multipleSelectEnable | Get or set whether treeview allows multiple nodes selection. | |
overflow | Get or set behavior when overflow happens. | |
selectDisableIds | Get or set list of select-disable tree nodes | |
selectedIds | Get or set set of selected tree nodes. | |
selectEnable | Get or set whether tree allow selection | |
showLines | Get or set whether treeview show lines connection between nodes. | |
singleExpand | Get or set whether treeview keeps single node expand | |
styleFolder | Get or set folder which contain css style for treeview. | |
width | Get or set the width for treeview |
Methods | Description | |
Add | Add a node to tree | |
getRootNode | Return the root node object. | |
getNode | Return tree node object. | |
Render | Render the treeview | |
RegisterScript | Return html to register js library for treeview. | |
RegisterCSS | Return html to register CSS for treeview | |
RenderTree | Return html content of treeview body | |
StartupScript | Return js code to inititate treeview |
Properties Detail
DragAndDropEnableTop
bool DragAndDropEnable
Get or set whether tree allow drag and drop.
Supported from version: 2.0.0.0
dragDisableIdsTop
string dragDisableIds
Get or set list of drag-disable tree nodes
Supported from version: 2.0.0.0
dropDisableIdsTop
string dropDisableIds
Get or set list of drop-disable tree nodes
Supported from version: 2.0.0.0
editDisableIdsTop
string editDisableIds
Get or set list of edit-disable tree nodes
Supported from version: 2.0.0.0
EditNodeEnableTop
bool EditNodeEnable
Get or set whether tree allow drag and drop.
Supported from version: 2.0.0.0
imageFolderTop
string imageFolder
Get or set folders which contain image resource for treeview
Supported from version: 1.0.0.0
isSubTreeTop
bool isSubTree
Set to true if current tree is under subtree request.
Supported from version: 1.0.0.0
keepStateTop
string keepState
Get or set how treeview will keep its state in cookie.
Default value : "none"
Allowed values :
- "none" : TreeView will not keep its state persisted.
- "onpage" : TreeView will keep its state persisted only on the current page.
- "crosspage" : TreeView will keep its state persisted cross multiple pages.
Supported from version: 2.0.3.1
keepStateHoursTop
int keepStateHours
Get or set the number of hours that treeview state will be kept in cookie.
Supported from version: 2.0.3.1
multipleSelectEnableTop
bool multipleSelectEnable
Get or set whether treeview allows multiple nodes selection. User use Ctrl + leftmouse in order to select multinodes.
Supported from version: 1.0.0.0
overflowTop
string overflow
Get or set behavior when overflow happens.
Allowed values :
- "auto" : Auto adding scroll when tree is longer or bigger than width and height.
- "scroll" : Add scroll
- "hidden" : Treeview will not display the scroll, overflow tree is hidden.
Supported from version: 1.0.0.0
selectDisableIdsTop
string selectDisableIds
Get or set list of select-disable tree nodes
Supported from version: 1.0.0.0
selectedIdsTop
string selectedIds
Get or set set of selected tree nodes.
Supported from version: 1.0.0.0
selectEnableTop
bool selectEnable
Get or set whether tree allow selection
Supported from version: 1.0.0.0
showLinesTop
bool showLines
Get or set whether treeview show lines connection between nodes.
Supported from version: 2.0.1.0
singleExpandTop
bool singleExpand
Get or set whether treeview keeps single node expand
Supported from version: 1.0.0.0
styleFolderTop
string styleFolder
Get or set folder which contain css style for treeview.
Supported from version: 1.0.0.0
Methods Detail
AddTop
TreeNode Add(string $parentid, string $id, string $html, [bool $expand], [string $imageSrc], [string $subTreeUrl])
Add a node to tree
Supported from version: 1.0.0.0
RegisterScriptTop
string RegisterScript()
Return html to register js library for treeview.
Supported from version: 1.0.0.0
RegisterCSSTop
string RegisterCSS()
Return html to register CSS for treeview
Supported from version: 1.0.0.0
RenderTreeTop
string RenderTree()
Return html content of treeview body
Supported from version: 1.0.0.0
StartupScriptTop
string StartupScript()
Return js code to inititate treeview
Supported from version: 1.0.0.0