The currently active {@link NotebookEditor notebook editor} or undefined
. The active editor is the one
that currently has focus or, when none has focus, the one that has changed
input most recently.
The currently active {@link NotebookEditor notebook editor} or `undefined`. The active editor is the one that currently has focus or, when none has focus, the one that has changed input most recently.
(notebook)
The {@link NotebookDocument notebook document} associated with this notebook editor.
Returns: NotebookDocument
The {@link NotebookDocument notebook document} associated with this notebook editor. **Returns:** `NotebookDocument`
(reveal-range range)
(reveal-range range reveal-type)
Scroll as indicated by revealType
in order to reveal the given range.
Parameters:
range
: NotebookRange
- A range.reveal-type
: NotebookEditorRevealType | undefined
- The scrolling strategy for revealing range
.Returns: void
Scroll as indicated by `revealType` in order to reveal the given range. **Parameters:** - `range`: `NotebookRange` - A range. - `reveal-type`: `NotebookEditorRevealType | undefined` - The scrolling strategy for revealing `range`. **Returns:** `void`
(selection)
The primary selection in this notebook editor.
Returns: NotebookRange
The primary selection in this notebook editor. **Returns:** `NotebookRange`
(selections)
All selections in this notebook editor.
The primary selection (or focused range) is selections[0]
. When the document has no cells, the primary selection is empty { start: 0, end: 0 }
;
Returns: readonly NotebookRange[]
All selections in this notebook editor. The primary selection (or focused range) is `selections[0]`. When the document has no cells, the primary selection is empty `{ start: 0, end: 0 }`; **Returns:** `readonly NotebookRange[]`
(set-selection! value)
The primary selection in this notebook editor.
The primary selection in this notebook editor.
(set-selections! value)
All selections in this notebook editor.
The primary selection (or focused range) is selections[0]
. When the document has no cells, the primary selection is empty { start: 0, end: 0 }
;
All selections in this notebook editor. The primary selection (or focused range) is `selections[0]`. When the document has no cells, the primary selection is empty `{ start: 0, end: 0 }`;
(view-column)
The column in which this editor shows.
Returns: ViewColumn | undefined
The column in which this editor shows. **Returns:** `ViewColumn | undefined`
(visible-ranges)
The current visible ranges in the editor (vertically).
Returns: readonly NotebookRange[]
The current visible ranges in the editor (vertically). **Returns:** `readonly NotebookRange[]`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close