Constructor
new MetadataTree(context, options)
- Source:
Parameters:
Name | Type | Description | |||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
context |
PMA.UI.Components.Context | ||||||||||||||||||||||||||||||||||||
options |
object | Configuration options
Properties
|
Fires:
- PMA.UI.Components.Events#event:ValueExpanded
- PMA.UI.Components.Events#event:SlideSelected
Classes
Methods
addServer(server)
- Source:
Adds a new server to the tree
Parameters:
Name | Type | Description |
---|---|---|
server |
PMA.UI.Components.Tree~server | A server object |
listen(eventName, callback)
- Source:
Attaches an event listener
Parameters:
Name | Type | Description |
---|---|---|
eventName |
PMA.UI.Components.Events | The name of the event to listen to |
callback |
function | The function to call when the event occurs |
removeServer(index)
- Source:
Removes a server from the tree
Parameters:
Name | Type | Description |
---|---|---|
index |
number | The index of the server to remove |