NotebookLayout Class#
The built-in linear, top-to-bottom notebook layout. Every cell is the live, editable cell component (its own editor, run button, outputs, and move/delete controls), arranged one per row in document order, and the host's main toolbar drives the notebook-level actions (run all, clear, restart). Each cell sits in an elevated surface card, and the insert affordances are rendered by the layout itself.
It renders inline as a custom layout: the cell list is built here as HTML with one
data-cell-slot per cell, and the host's portal moves the live cell component into each
slot. The scoped stylesheet and interactive script are shipped to the host through
Verso.Extensions.Layouts.NotebookLayout.GetStaticAssetsAsync(Verso.Abstractions.IVersoContext,Verso.Abstractions.LayoutHostCapabilities). Every color, surface, and font derives from the host
theme tokens (--verso-*), so the layout follows the active light/dark/high-contrast
theme with no re-render.
public sealed class NotebookLayout : Verso.Abstractions.ILayoutEngine, Verso.Abstractions.IExtension, Verso.Abstractions.ILayoutInteractionHandler
Inheritance System.Object → NotebookLayout
Implements ILayoutEngine, IExtension, ILayoutInteractionHandler
Properties#
Capabilities Property#
The cell affordances plus NotebookEvents so the script receives host state-change
pushes and can keep the slot set in sync when cells are added or removed (from the insert
affordances, a cell's own controls, or the host toolbar).
public Verso.Abstractions.LayoutCapabilities Capabilities { get; }
Implements Capabilities