Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface EditorContext<TEvent>

The context is passed to the render function of Editor. It allows the rendered Virtual DOM nodes to triggger events specific to the editor (which then trigger state update via the update function).

Type parameters

  • TEvent

Hierarchy

  • EditorContext

Index

Methods

evaluate

  • evaluate(blockId: number): void

rebindSubsequent

  • rebindSubsequent(block: BlockState, newSource: string): any
  • Set the source of a given code block to the newSource and trigger rebinding of all subsequent code blocks in a notebook.

    Parameters

    Returns any

trigger

  • trigger(event: TEvent): void
  • Trigger an editor-specific event to be handled via the update function

    Parameters

    • event: TEvent

    Returns void

Generated using TypeDoc