Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface NotebookRendererMessaging

Renderer messaging is used to communicate with a single renderer. It's returned from notebooks.createRendererMessaging.

Hierarchy

  • NotebookRendererMessaging

索引

Properties

Methods

Properties

Readonly onDidReceiveMessage

onDidReceiveMessage: Event<{ editor: NotebookEditor; message: any }>

An event that fires when a message is received from a renderer.

Methods

postMessage

  • Send a message to one or all renderer.

    Parameters

    • message: any

      Message to send

    • Optional editor: NotebookEditor

      Editor to target with the message. If not provided, the message is sent to all renderers.

    Returns Thenable<boolean>

    a boolean indicating whether the message was successfully delivered to any renderer.

Generated by TypeDoc