Class Rico.TreeControl
Extends
Rico.Popup.
Implements a pop-up tree control.
Defined in: <ricoTree.js>.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
Rico.TreeControl(id, url, options)
|
| Method Attributes | Method Name and Description |
|---|---|
|
addNode(parentId, nodeId, nodeDesc, isContainer, isSelectable, leafIcon, isLast)
|
|
|
atLoad()
|
|
|
clickBranch(e)
|
|
|
DisplayImages(row, arNames)
|
|
|
domID(nodeID, part)
|
|
|
loadXMLDoc(branchPin)
|
|
|
nodeClick(e)
|
|
|
open()
|
|
|
processResponse(request)
|
|
|
setCheckBoxes(val)
|
|
|
setTreeDiv(divId)
|
- Methods borrowed from class Rico.Popup:
- closePopup, createPopup, createWindow, move, setDiv
Class Detail
Rico.TreeControl(id, url, options)
- Parameters:
- id
- unique identifier
- url
- data source
- options
- object may contain any of the following:
- nodeIdDisplay
- first, last, tooltip, or none? default=none
- showCheckBox
- show checkbox next to each item? default=false
- showFolders
- show folder icons? default=false
- showPlusMinus
- show +/- icons to open/close branches? default=true
- showLines
- show vertical lines connecting each level? default=true
- defaultAction
- function to call when user clicks on an item, default is to call returnValue method
- height
- control height? default=300px
- width
- control width? default=300px
- leafIcon
- url to img, default=doc.gif ('none'=no leaf icon)
Method Detail
addNode(parentId, nodeId, nodeDesc, isContainer, isSelectable, leafIcon, isLast)
- Parameters:
- parentId
- nodeId
- nodeDesc
- isContainer
- isSelectable
- leafIcon
- isLast
atLoad()
clickBranch(e)
- Parameters:
- e
clrCheckBoxEvent(e)
- Parameters:
- e
DisplayImages(row, arNames)
- Parameters:
- row
- arNames
domID(nodeID, part)
- Parameters:
- nodeID
- part
getCheckedItems()
loadXMLDoc(branchPin)
- Parameters:
- branchPin
nodeClick(e)
- Parameters:
- e
open()
openPopup()
processResponse(request)
- Parameters:
- request
saveSelection(e)
- Parameters:
- e
setCheckBoxes(val)
- Parameters:
- val
setTreeDiv(divId)
- Parameters:
- divId