ContentGroup Pennington.Tui
Per-IContentService bundle of TOC items surfaced in the Content tab.
Properties
DefaultSectionLabelstring- The service's
DefaultSectionLabel, shown as a dim subtitle. ItemsSystem.Collections.Generic.IReadOnlyList<Pennington.Content.ContentTocItem>- Items the service returned on the most recent refresh.
ServiceLabelstring- Pretty-printed service type name (e.g.
MarkdownContentService<DocFrontMatter>).
Constructors
.ctor
#public readonly record struct ContentGroup(
string ServiceLabel,
string DefaultSectionLabel,
IReadOnlyList<ContentTocItem> Items);Per-IContentService bundle of TOC items surfaced in the Content tab.
Parameters
ServiceLabelstring- Pretty-printed service type name (e.g.
MarkdownContentService<DocFrontMatter>). DefaultSectionLabelstring- The service's
DefaultSectionLabel, shown as a dim subtitle. ItemsIReadOnlyList<ContentTocItem>- Items the service returned on the most recent refresh.
Pennington.Tui.ContentGroup
namespace Pennington.Tui;
/// Per-IContentService bundle of TOC items surfaced in the Content tab.
public record ContentGroup
{
/// Per-IContentService bundle of TOC items surfaced in the Content tab.
public readonly record struct ContentGroup(
string ServiceLabel,
string DefaultSectionLabel,
IReadOnlyList<ContentTocItem> Items);
/// The service's DefaultSectionLabel, shown as a dim subtitle.
string DefaultSectionLabel
;
/// Items the service returned on the most recent refresh.
IReadOnlyList<ContentTocItem> Items
;
/// Pretty-printed service type name (e.g. MarkdownContentService<DocFrontMatter>).
string ServiceLabel
;
}