Skip to content

SPARQL Studio API / SparqlUtils / SparqlEditorFactory

Type Alias: SparqlEditorFactory ​

SparqlEditorFactory = (parent, conf) => IEditor

Defined in: sparql-utils/src/yasqe.ts:249

Factory that builds an editor instance into parent, given the shared config SparqlStudio injects. Called once per Studio instance. SparqlStudio is editor-independent: the consumer imports an editor (e.g. @rdfjs/sparql-editor-monaco or @rdfjs/sparql-editor-codemirror) and supplies one of these as config.editor.

Parameters ​

parent ​

HTMLElement

conf ​

any

Returns ​

IEditor