thebe-core

Class: PassiveCellRenderer

thebe-core / Exports / PassiveCellRenderer

#Hierarchy

#Implements

#Table of contents

#Constructors

#Properties

#Accessors

#Methods

#Constructors

#constructor

new PassiveCellRenderer(id, rendermime?, mathjax?)

#Parameters

NameType
idstring
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

IPassiveCell.id

#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

IPassiveCell.rendermime

#Defined in

packages/core/src/passive.ts:11

#Accessors

#isAttachedToDOM

get isAttachedToDOM(): boolean

#Returns

boolean

#Implementation of

IPassiveCell.isAttachedToDOM

#Defined in

packages/core/src/passive.ts:32


#outputs

get outputs(): IOutput[]

Serialize the model state to JSON

#Returns

IOutput[]

#Implementation of

IPassiveCell.outputs

#Defined in

packages/core/src/passive.ts:28

#Methods

#attachToDOM

attachToDOM(el?): void

#Parameters

NameType
el?HTMLElement

#Returns

void

#Implementation of

IPassiveCell.attachToDOM

#Defined in

packages/core/src/passive.ts:36


#clear

clear(): void

Clears the output area model

#Returns

void

#Implementation of

IPassiveCell.clear

#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

NameType
error?any

#Returns

void

#Implementation of

IPassiveCell.clearOnError

#Defined in

packages/core/src/passive.ts:94


#render

render(outputs): void

Render output data directly from json

#Parameters

NameTypeDescription
outputsIOutput[]serialised jupyter outputs

#Returns

void

#Implementation of

IPassiveCell.render

#Defined in

packages/core/src/passive.ts:110


#setOutputText

setOutputText(text): void

#Parameters

NameType
textstring

#Returns

void

#Implementation of

IPassiveCell.setOutputText

#Defined in

packages/core/src/passive.ts:68