Skip to main content

Type Alias: GraphSource

type GraphSource = object & 
| {
sources: GraphSource[];
}
| {
useData: () =>
| {
edges?: GraphEdge[];
nodes?: GraphNode[];
}
| null;
};

Defined in: components/resourceMap/graph/graphModel.tsx:88

Graph Source defines a group of Nodes and Edges that can be loaded on the Map

Graph Source may contain other GraphSources

Type Declaration

icon?

optional icon?: ReactNode;

Optional icon to display

id

id: string;

ID of the source, should be uniquie

isEnabledByDefault?

optional isEnabledByDefault?: boolean;

Controls wherther the source is shown by default

Default

true

label

label: string;

Descriptive label of the source