thebe-core / Exports / PassiveCellRenderer
Hierarchy¶
PassiveCellRenderer
Implements¶
Table of contents¶
Constructors¶
Properties¶
Accessors¶
Methods¶
Constructors¶
constructor¶
• new PassiveCellRenderer(id
, rendermime?
, mathjax?
)
Parameters¶
Name | Type |
---|---|
id | string |
rendermime? | IRenderMimeRegistry |
mathjax? | MathjaxOptions |
Defined in¶
packages/core/src/passive.ts:15
Properties¶
area¶
• Protected
area: OutputArea
Defined in¶
packages/core/src/passive.ts:13
id¶
• Readonly
id: string
Implementation of¶
Defined in¶
packages/core/src/passive.ts:10
model¶
• Protected
model: OutputAreaModel
Defined in¶
packages/core/src/passive.ts:12
rendermime¶
• Readonly
rendermime: IRenderMimeRegistry
Implementation of¶
Defined in¶
packages/core/src/passive.ts:11
Accessors¶
isAttachedToDOM¶
• get
isAttachedToDOM(): boolean
Returns¶
boolean
Implementation of¶
Defined in¶
packages/core/src/passive.ts:32
outputs¶
• get
outputs(): IOutput
[]
Serialize the model state to JSON
Returns¶
IOutput
[]
Implementation of¶
Defined in¶
packages/core/src/passive.ts:28
Methods¶
attachToDOM¶
▸ attachToDOM(el?
): void
Parameters¶
Name | Type |
---|---|
el? | HTMLElement |
Returns¶
void
Implementation of¶
Defined in¶
packages/core/src/passive.ts:36
clear¶
▸ clear(): void
Clears the output area model
Returns¶
void
Implementation of¶
Defined in¶
packages/core/src/passive.ts:83
clearOnError¶
▸ clearOnError(error?
): void
Will trigger the output to render an error with text taken from the optional argument
Parameters¶
Name | Type |
---|---|
error? | any |
Returns¶
void
Implementation of¶
Defined in¶
packages/core/src/passive.ts:94
render¶
▸ render(outputs
): void
Render output data directly from json
Parameters¶
Name | Type | Description |
---|---|---|
outputs | IOutput [] | serialised jupyter outputs |
Returns¶
void
Implementation of¶
Defined in¶
packages/core/src/passive.ts:110
setOutputText¶
▸ setOutputText(text
): void
Parameters¶
Name | Type |
---|---|
text | string |
Returns¶
void