Docs · API reference · Verso.Abstractions

IPanelContext Interface#

Context provided to INotebookPanel when the host asks whether a panel is available or asks it to produce content. Extends IVersoContext with the notebook state a panel is most likely to need.

public interface IPanelContext : Verso.Abstractions.IVersoContext

Implements IVersoContext

Properties#

NotebookCells Property#

Gets the ordered list of all cell models in the notebook.

System.Collections.Generic.IReadOnlyList<Verso.Abstractions.CellModel> NotebookCells { get; }

Property Value#

System.Collections.Generic.IReadOnlyList<CellModel>

SelectedCellId Property#

Gets the identifier of the currently selected cell, or null when no cell is selected. Panels that report on the selection should re-render when this changes; the host calls RenderAsync(IPanelContext) again on selection change.

System.Nullable<System.Guid> SelectedCellId { get; }

Property Value#

System.Nullable<System.Guid>