createNotebookController

fun createNotebookController(id: String, notebookType: String, label: String, handler: (ReadonlyArray<NotebookCell>, notebook: NotebookDocument, controller: NotebookController) -> PromiseLike<Void?> = definedExternally): NotebookController(source)

Creates a new notebook controller.

Parameters

id

Identifier of the controller. Must be unique per extension.

notebookType

A notebook type for which this controller is for.

label

The label of the controller.

handler

The execute-handler of the controller.