Skip to content

@graphty/graphty-element / session / DataSourceInput

Interface: DataSourceInput ​

Defined in: graphty-element/src/session/types.ts:1198

A source to import: the pair the element takes as dataSource and dataSourceConfig. type is a registered data source ("json", "csv", "graphml", ...), and config its options: inline data, a url or a file, and what the source reads besides.

Properties ​

config ​

readonly config: Readonly<Record<string, unknown>>

Defined in: graphty-element/src/session/types.ts:1202

Its options.


name? ​

readonly optional name?: string

Defined in: graphty-element/src/session/types.ts:1207

What the reader calls the data, kept with the graph for data.source(). The file's name, or the last part of the URL, when absent.


type? ​

readonly optional type?: string

Defined in: graphty-element/src/session/types.ts:1200

The data source's name; detected from the file name, the URL or the content when absent.