FooterBar
ConsoleMonster.Widgets
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 43 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 21
- Method Ui.FooterBar
- Extension method FooterBar.FixedSlots
- Extension method FooterBar.Hint
- Extension method FooterBar.Hints
- Extension method FooterBar.HintsBy
- Extension method FooterBar.Indent
- Extension method FooterBar.KeepLast
- Extension method FooterBar.Message
- Extension method FooterBar.Right
- Extension method FooterBar.Segment
- Extension method FooterBar.Segments
- Method FooterBarFluent.FixedSlots
- Method FooterBarFluent.Hint
- Method FooterBarFluent.Hints
- Method FooterBarFluent.HintsBy
- Method FooterBarFluent.Indent
- Method FooterBarFluent.KeepLast
- Method FooterBarFluent.Message
- Method FooterBarFluent.Right
- Method FooterBarFluent.Segment
- Method FooterBarFluent.Segments
Accepted by parameters 22
- Method ContentBuilder.FooterBar
- Method ContentBuilder.FooterBar
- Extension method FooterBar.FixedSlots
- Extension method FooterBar.Hint
- Extension method FooterBar.Hints
- Extension method FooterBar.HintsBy
- Extension method FooterBar.Indent
- Extension method FooterBar.KeepLast
- Extension method FooterBar.Message
- Extension method FooterBar.Right
- Extension method FooterBar.Segment
- Extension method FooterBar.Segments
- Method FooterBarFluent.FixedSlots
- Method FooterBarFluent.Hint
- Method FooterBarFluent.Hints
- Method FooterBarFluent.HintsBy
- Method FooterBarFluent.Indent
- Method FooterBarFluent.KeepLast
- Method FooterBarFluent.Message
- Method FooterBarFluent.Right
- Method FooterBarFluent.Segment
- Method FooterBarFluent.Segments
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, int available, bool keepLast = false) #The 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 int
- The width.
- keepLast bool = false
- Keeps the last hint when others are dropped.
public Size Measure(Constraints constraints, RenderContext context) #Returns the size the widget wants within the constraints.
Parameters
- constraints ConsoleMonster.Layout.Constraints
- The space offered.
- context ConsoleMonster.Canvas.RenderContext
- Profile, theme and glyphs.
public void Render(Region region, RenderContext context) #Renders 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
Properties
public Func<IEnumerable<KeyHint>>? HintsSource { get; set; } #Fluent("HintsBy")Reads current registry hints at render time, for example from the focused panel or active dialog. In an app, a footer with neither hints nor a source shows the app's key bindings.
public bool FixedSlots { get; set; } #Keeps every registry entry in a fixed slot, shortening labels rather than hiding unavailable or trailing commands.
public bool KeepLast { get; set; } #Keeps the last hint (the key map) when others have to be dropped.
public StyledLine? Message { get; set; } #A line shown instead of the hints (a toast), or null.
public List<FooterSegment> Segments { get; } #Segments on the right (after FooterBar.Right), separated by a dot: a run id, a report link, a status.