import SidebarContent from 'canvas-graph-creator/src/js/ui/sidebar-content.js'
SidebarContent
Direct Subclass:
SidebarContent is a super class This class ensures the proper methods are overloaded, takes in a graph to store so it can use it to access metadata, and starts setting up the tab class.
Subclasses that extend this superclass must super the constructor and replace the old tabs and content with new tabs and content relevant to their context. See the sidebar-node and sidebar-edge example classes.
Constructor Summary
Public Constructor | ||
public |
constructor(graph: Graph) Constructs a SidebarContent instance. |
Method Summary
Public Methods | ||
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. |