Constructor
new MetadataTree(context, options)
- Source:
Parameters:
Name | Type | Description | |||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
context |
Context | ||||||||||||||||||||||||||||||||||||
options |
object | Configuration options
Properties
|
Fires:
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 |