***`
@jupyterlite / @jupyterlite/application / SingleWidgetApp / IOptions
接口:IOptions
#
定义于:packages/application/src/singleWidgetApp.ts:97
App 应用程序的实例化选项。
扩展#
IOptions
<ISingleWidgetShell
>.Partial
<IInfo
>
属性#
commandLinker?
#
可选
**commandLinker**
:CommandLinker
定义于:node_modules/@jupyterlab/application/lib/frontend.d.ts:110
应用程序使用的命令链接器。
继承自#
JupyterFrontEnd.IOptions.commandLinker
`***
docRegistry?
#
可选
**docRegistry**
:DocumentRegistry
定义于:node_modules/@jupyterlab/application/lib/frontend.d.ts:106
应用程序使用的文档注册表实例。
继承自#
JupyterFrontEnd.IOptions.docRegistry
`***
mimeExtensions?
#
只读
可选
mimeExtensions
:IExtensionModule
[]
定义于:packages/application/src/singleWidgetApp.ts:108
MIME 渲染器扩展。
继承自#
Partial.mimeExtensions
***`
pluginRegistry?
#
可选
**pluginRegistry**
:PluginRegistry
<any
>
定义于:node_modules/@lumino/application/types/index.d.ts:314
应用程序插件注册表。
如果已定义,与插件注册表相关的选项将被忽略。
继承自#
JupyterFrontEnd.IOptions.pluginRegistry
`***
restored?
#
可选
restored
:Promise
<any
>
定义于:node_modules/@jupyterlab/application/lib/frontend.d.ts:119
首次恢复状态时解析的 Promise,返回布局描述。
继承自#
JupyterFrontEnd.IOptions.restored
***`
serviceManager?
#
可选
**serviceManager**
:IManager
定义于:node_modules/@jupyterlab/application/lib/frontend.d.ts:114
应用程序使用的服务管理器。
继承自#
JupyterFrontEnd.IOptions.serviceManager
`***
shell
#
shell
:ISingleWidgetShell
定义于:node_modules/@lumino/application/types/index.d.ts:303
应用程序使用的 shell 小部件。
这应该是一个新创建和初始化的小部件。
应用程序会将小部件附加到 DOM。
继承自#
JupyterFrontEnd.IOptions.shell
***`
validatePlugin()?
#
可选
**validatePlugin**: (
plugin) =>
boolean`
定义于:node_modules/@lumino/coreutils/types/plugins.d.ts:277
验证插件是否允许注册。
默认值为 () => true
。
参数#
plugin#
IPlugin
<any
, any
>
要验证的插件
返回#
boolean
插件是否可以注册。
备注#
建议您在控制台打印一条消息,说明插件无效的原因。
继承自#
JupyterFrontEnd.IOptions.validatePlugin