Liking cljdoc? Tell your friends :D

dots.vscode.notebook-document

Represents a notebook which itself is a sequence of {@link NotebookCell code or markup cells}. Notebook documents are created from {@link NotebookData notebook data}.

Represents a notebook which itself is a sequence of {@link NotebookCell code or markup cells}. Notebook documents are
created from {@link NotebookData notebook data}.
raw docstring

cell-atcljs

(cell-at notebook-document index)

Return the cell at the specified index. The index will be adjusted to the notebook.

Parameters:

  • index: number - - The index of the cell to retrieve.

Returns: NotebookCell - A {@link NotebookCellcell}.

Return the cell at the specified index. The index will be adjusted to the notebook.

**Parameters:**
- `index`: `number` - - The index of the cell to retrieve.

**Returns:** `NotebookCell` - A {@link NotebookCellcell}.
sourceraw docstring

cell-countcljs

(cell-count notebook-document)

The number of cells in the notebook.

The number of cells in the notebook.
sourceraw docstring

cellscljs

(cells notebook-document)
(cells notebook-document range)

Get the cells of this notebook. A subset can be retrieved by providing a range. The range will be adjusted to the notebook.

Parameters:

  • range: NotebookRange | undefined - A notebook range.

Returns: NotebookCell[] - The cells contained by the range or all cells.

Get the cells of this notebook. A subset can be retrieved by providing
a range. The range will be adjusted to the notebook.

**Parameters:**
- `range`: `NotebookRange | undefined` - A notebook range.

**Returns:** `NotebookCell[]` - The cells contained by the range or all cells.
sourceraw docstring

closed?cljs

(closed? notebook-document)

true if the notebook has been closed. A closed notebook isn't synchronized anymore and won't be re-used when the same resource is opened again.

`true` if the notebook has been closed. A closed notebook isn't synchronized anymore
and won't be re-used when the same resource is opened again.
sourceraw docstring

dirty?cljs

(dirty? notebook-document)

true if there are unpersisted changes.

`true` if there are unpersisted changes.
sourceraw docstring

metadatacljs

(metadata notebook-document)

Arbitrary metadata for this notebook. Can be anything but must be JSON-stringifyable.

Arbitrary metadata for this notebook. Can be anything but must be JSON-stringifyable.
sourceraw docstring

notebook-typecljs

(notebook-type notebook-document)

The type of notebook.

The type of notebook.
sourceraw docstring

savecljs

(save notebook-document)

Save the document. The saving will be handled by the corresponding {@link NotebookSerializer serializer}.

Returns: Thenable<boolean> - A promise that will resolve to true when the document has been saved. Will return false if the file was not dirty or when save failed.

Save the document. The saving will be handled by the corresponding {@link NotebookSerializer serializer}.

**Returns:** `Thenable<boolean>` - A promise that will resolve to true when the document
has been saved. Will return false if the file was not dirty or when save failed.
sourceraw docstring

untitled?cljs

(untitled? notebook-document)

Is this notebook representing an untitled file which has not been saved yet.

Is this notebook representing an untitled file which has not been saved yet.
sourceraw docstring

uricljs

(uri notebook-document)

The associated uri for this notebook.

Note that most notebooks use the file-scheme, which means they are files on disk. However, not all notebooks are saved on disk and therefore the scheme must be checked before trying to access the underlying file or siblings on disk.

The associated uri for this notebook.

*Note* that most notebooks use the `file`-scheme, which means they are files on disk. However, **not** all notebooks are
saved on disk and therefore the `scheme` must be checked before trying to access the underlying file or siblings on disk.
sourceraw docstring

versioncljs

(version notebook-document)

The version number of this notebook (it will strictly increase after each change, including undo/redo).

The version number of this notebook (it will strictly increase after each
change, including undo/redo).
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close