Slots
Pennington.UI.Components.Navigation
Base classes per rendered slot, before any per-instance merge.
Properties
Linkstring- A child link; also carries the
data-[current=true]state styling. Liststring- The outer
<ul>wrapping the whole tree. Sectionstring- The per-section
<li>. SectionListstring- The nested
<ul>holding a section's child entries. SectionTitlestring- The section label — the
<div>for empty-route entries, or the<a>when a top-level entry has children. TopLinkstring- A top-level leaf link; also carries the
data-[current=true]state styling.
Constructors
Slots
#public Slots(string List, string Section, string SectionTitle, string SectionList, string Link, string TopLink)
Base classes per rendered slot, before any per-instance merge.
Parameters
Liststring- The outer
<ul>wrapping the whole tree. Sectionstring- The per-section
<li>. SectionTitlestring- The section label — the
<div>for empty-route entries, or the<a>when a top-level entry has children. SectionListstring- The nested
<ul>holding a section's child entries. Linkstring- A child link; also carries the
data-[current=true]state styling. TopLinkstring- A top-level leaf link; also carries the
data-[current=true]state styling.
Pennington.UI.Components.Navigation.Slots
namespace Pennington.UI.Components.Navigation;
/// Base classes per rendered slot, before any per-instance merge.
public struct Slots
{
/// A child link; also carries the data-[current=true] state styling.
public string Link { get; set; }
/// The outer <ul> wrapping the whole tree.
public string List { get; set; }
/// The per-section <li>.
public string Section { get; set; }
/// The nested <ul> holding a section's child entries.
public string SectionList { get; set; }
/// The section label — the <div> for empty-route entries, or the <a> when a top-level entry has children.
public string SectionTitle { get; set; }
/// Base classes per rendered slot, before any per-instance merge.
public Slots(string List, string Section, string SectionTitle, string SectionList, string Link, string TopLink)
;
/// A top-level leaf link; also carries the data-[current=true] state styling.
public string TopLink { get; set; }
}