Home Reference Source Test Repository
public class | source

SidebarContent

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.

Member Summary

Public Members
public

graph: *

public

tabs: *

Method Summary

Public Methods
public

changeGraph(newGraph: Graph)

Change the Graph object reference stored to the new one.

public abstract

Display the sidebar.

public abstract

update()

Update the sidebar state.

Public Constructors

public constructor(graph: Graph) source

Constructs a SidebarContent instance. This should not be called directly.

Params:

NameTypeAttributeDescription
graph Graph

The current Graph object.

Public Members

public graph: * source

public tabs: * source

Public Methods

public changeGraph(newGraph: Graph) source

Change the Graph object reference stored to the new one.

Params:

NameTypeAttributeDescription
newGraph Graph

The new Graph instance.

public abstract display() source

Display the sidebar.

public abstract update() source

Update the sidebar state.