SidebarSelect
Extends:
Sidebar content class for handling selected items. This sidebar is used by the SelectTool.
Constructor Summary
Public Constructor | ||
public |
constructor(graph: Graph) Constructs a SidebarSelect instance. |
Member Summary
Public Members | ||
public |
|
Method Summary
Public Methods | ||
public |
display() Called to initially display the sidebar. |
|
public |
displayEdge(edge: Edge): string Get HTML for displaying a form for editing Edge fields. |
|
public |
displayGraph(graph: Graph): string Get HTML for displaying Graph data. |
|
public |
displayLabel(label: Label): string Get HTML for displaying a form for editing Label fields. |
|
public |
displayNode(node: Node): string Get HTML for displaying a form for editing Node fields. |
|
public |
Update the sidebar with the selected object. |
|
public |
updateObjectValues(event: Event) Called when an 'input' or 'change' event is triggered by a form input. |
Inherited Summary
From class SidebarContent | ||
public |
graph: * |
|
public |
tabs: * |
|
public |
changeGraph(newGraph: Graph) Change the Graph object reference stored to the new one. |
|
public abstract |
display() Display the sidebar. |
|
public abstract |
update() Update the sidebar state. |
Public Constructors
public constructor(graph: Graph) source
Constructs a SidebarSelect instance.
Override:
SidebarContent#constructorParams:
Name | Type | Attribute | Description |
graph | Graph | The current Graph object. |
Public Members
public selectedObject: * source
Public Methods
public display() source
Called to initially display the sidebar. Also adds event listeners to the forms.
Override:
SidebarContent#displaypublic displayEdge(edge: Edge): string source
Get HTML for displaying a form for editing Edge fields.
Params:
Name | Type | Attribute | Description |
edge | Edge | The Edge object to display. |
public displayGraph(graph: Graph): string source
Get HTML for displaying Graph data. This will be used when nothing is selected.
Params:
Name | Type | Attribute | Description |
graph | Graph | The Graph to display data for. |
public displayLabel(label: Label): string source
Get HTML for displaying a form for editing Label fields.
Params:
Name | Type | Attribute | Description |
label | Label | The Label object to display. |
public displayNode(node: Node): string source
Get HTML for displaying a form for editing Node fields.
Params:
Name | Type | Attribute | Description |
node | Node | The Node object to display. |
public update(obj: Node | Edge) source
Update the sidebar with the selected object.