@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 ​
readonlyconfig:Readonly<Record<string,unknown>>
Defined in: graphty-element/src/session/types.ts:1202
Its options.
name? ​
readonlyoptionalname?: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? ​
readonlyoptionaltype?: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.