A type alias for a code context.
A type alias for a code model factory.
A type alias for a context.
A type alias for a standard model factory.
A type alias for a standard widget extension.
A type alias for a standard widget factory.
Construct a new document registry.
The default file types used by the document registry.
A signal emitted when the registry has changed.
Get whether the document registry has been disposed.
Add a model factory to the registry.
The factory instance.
A disposable which will unregister the factory.
If a factory with the given name
is already registered, or
the given factory is already registered, a warning will be logged
and this will be a no-op.
Add a widget extension to the registry.
The name of the widget factory.
A widget extension.
A disposable which will unregister the extension.
If the extension is already registered for the given widget name, a warning will be logged and this will be a no-op.
Add a widget factory to the registry.
The factory instance to register.
A disposable which will unregister the factory.
If a factory with the given 'name'
is already registered,
a warning will be logged, and this will be a no-op.
If '*'
is given as a default extension, the factory will be registered
as the global default.
If an extension or global default is already registered, this factory
will override the existing default.
The factory cannot be named an empty string or the string 'default'
.
Get the default rendered widget factory for a path.
The path to for which to find a widget factory.
The default rendered widget factory for the path.
If the widget factory has registered a separate set of defaultRendered
file types and there is a match in that set, this returns that.
Otherwise, this returns the same widget factory as
defaultWidgetFactory.
Get the default widget factory for a path.
An optional file path to filter the results.
The default widget factory for an path.
This is equivalent to the first value in preferredWidgetFactories.
Dispose of the resources held by the document registery.
Create an iterator over the file types that have been registered.
A new iterator of file types.
Get a file type by name.
Get the file types that match a file name.
The path of the file.
An ordered list of matching file types.
Get a kernel preference.
The file path.
The name of the widget factory.
An optional existing kernel model.
A kernel preference.
Get a model factory by name.
The name of the model factory.
A model factory instance.
Get a widget factory by name.
The name of the widget factory.
A widget factory instance.
Create an iterator over the model factories that have been registered.
A new iterator of model factories.
Get a list of the preferred widget factories.
The file path to filter the results.
A new array of widget factories.
Only the widget factories whose associated model factory have been registered will be returned. The first item is considered the default. The returned array has widget factories in the following order:
Set overrides for the default widget factory for a file type.
Normally, a widget factory informs the document registry which file types
it should be the default for using the defaultFor
option in the
IWidgetFactoryOptions. This function can be used to override that after
the fact.
Create an iterator over the registered extensions for a given widget.
The name of the widget factory.
A new iterator over the widget extensions.
Create an iterator over the widget factories that have been registered.
A new iterator of widget factories.
The default directory file type used by the document registry.
The default notebook file type used by the document registry.
The default text file type used by the document registry.
The defaults used for a file type.
Generated using TypeDoc
The document registry. The namespace for the
DocumentRegistry
class statics.