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 per-tab config SparqlStudio injects. 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.yasqe.

Parameters

parent

HTMLElement

conf

any

Returns

IEditor