API Reference
FooterBar
The one key-hint footer of every surface (dashboards, menus, forms, prompts, runs, inline areas): a row starting at column 1 with keys in Accent and labels in Muted, two spaces between hints, optional text on the right (Muted), and a toast or message replacing the hints while it shows. No band, so it reads the same full screen and inline. Hints that do not fit are dropped from the end, keeping the last (help) hint when asked. See Docs/Design-System.md.
Inheritance
- Object
- FooterBar
Usage
Explore 24 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 12
- Extension method FooterBar.AddHint
- Extension method FooterBar.AddHints
- Extension method FooterBar.WithIndent
- Extension method FooterBar.WithKeepLast
- Extension method FooterBar.WithMessage
- Extension method FooterBar.WithRight
- Method FooterBarFluent.AddHint
- Method FooterBarFluent.AddHints
- Method FooterBarFluent.WithIndent
- Method FooterBarFluent.WithKeepLast
- Method FooterBarFluent.WithMessage
- Method FooterBarFluent.WithRight
Accepted by parameters 12
- Extension method FooterBar.AddHint
- Extension method FooterBar.AddHints
- Extension method FooterBar.WithIndent
- Extension method FooterBar.WithKeepLast
- Extension method FooterBar.WithMessage
- Extension method FooterBar.WithRight
- Method FooterBarFluent.AddHint
- Method FooterBarFluent.AddHints
- Method FooterBarFluent.WithIndent
- Method FooterBarFluent.WithKeepLast
- Method FooterBarFluent.WithMessage
- Method FooterBarFluent.WithRight
Constructors
public FooterBar(IEnumerable<KeyHint>? hints = null) #Creates a footer.
Parameters
- hints System.Collections.Generic.IEnumerable<ConsoleMonster.Widgets.KeyHint>? = null
- The hints, in order.
Methods
public static StyledLine Line(IReadOnlyList<KeyHint> hints, RenderContext context, Int32 available, Boolean keepLast = false) #StyledLineThe hints as one styled line no wider than available cells.
Parameters
- hints System.Collections.Generic.IReadOnlyList<ConsoleMonster.Widgets.KeyHint>
- The hints.
- context ConsoleMonster.Canvas.RenderContext
- The render context.
- available System.Int32
- The width.
- keepLast System.Boolean = false
- Keeps the last hint when others are dropped.
Returns
The line.
public Size Measure(Constraints constraints, RenderContext context) #SizeReturns the size the widget wants within the constraints.
Parameters
- constraints ConsoleMonster.Layout.Constraints
- The space offered.
- context ConsoleMonster.Canvas.RenderContext
- Profile, theme and glyphs.
Returns
The desired size, never larger than the constraints.
public Void Render(Region region, RenderContext context) #VoidRenders into a region. The region may be smaller or larger than the measured size.
Parameters
- region ConsoleMonster.Canvas.Region
- The target region.
- context ConsoleMonster.Canvas.RenderContext
- Profile, theme and glyphs.
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?