Class BTM.UI.TreeView [Experimental]
Dynamic Tree view to display nested data
Defined in: ui.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
BTM.UI.TreeView(element, options)
[Experimental]
|
| Method Attributes | Method Name and Description |
|---|---|
|
initItem(element)
Initialize an item in the Tree
|
|
|
toggle(element, button)
Toggle the disaplay of a branch within the Tree View
|
Class Detail
BTM.UI.TreeView(element, options)
[Experimental]
- Parameters:
- {HTMLElement|String} element
- element ID or element reference to nested Unordered List
- {Object} options Optional
- the options object
- {Boolean} options.defaultOpen Optional, Default: calculated
- flag to default the TreeView to expanded (open)
Method Detail
initItem(element)
Initialize an item in the Tree
- Parameters:
- {HTMLElement|String} element
- element ID or reference to element in the Tree View
toggle(element, button)
Toggle the disaplay of a branch within the Tree View
- Parameters:
- {HTMLElement|String} element
- element ID or reference to Unordered List to be toggled
- {HTMLElement|String} button
- element ID or reference to the element used as a toggle button