Class FooterBar
Renders a FooterState snapshot into a Spectre.Console Spectre.Console.Rendering.IRenderable using a parsed FooterTemplate.
public sealed class FooterBar
- Inheritance
-
FooterBar
- Inherited Members
Constructors
FooterBar(string, bool)
Creates a new FooterBar with the given template string.
public FooterBar(string template, bool enabled = true)
Parameters
templatestringTemplate string (e.g.,
{folder} │ {branch?} │ {context}).enabledboolWhether the footer is enabled. When false, ToRenderable(FooterState) returns an empty Spectre.Console.Text.
Methods
RenderPersistent(FooterState)
Renders the footer as a persistent status line pinned to the bottom terminal row.
public void RenderPersistent(FooterState state)
Parameters
stateFooterState
ToRenderable(FooterState)
Renders the current state into an Spectre.Console.Rendering.IRenderable.
Returns an empty Spectre.Console.Text when the footer is disabled.
public IRenderable ToRenderable(FooterState state)
Parameters
stateFooterState
Returns
- IRenderable