ViewerProvider

Description

A ViewerProvider is an interface that can be implemented to create a custom viewer.

Functions

Function

Argument(s)

Output

Description

init

context

void

Initializes a ViewerProvider with the received ViewerContext.

This is where an HTMLELement could be created if needed.

getHtmlElement

none

HTMLElement

Used to return an HTMLElement which will be used to display the viewer in a data cell.

update?

context

void

A callback function that is called every time a data cell changes.

Must be used to update the HTMLElement once the value changes.

destroy?

none

void

A callback function that is called when the viewer of a data cell is being destroyed. Allows the release of any resources or object that may have been referenced by the ViewerProvider.