RunBoardPanel
ConsoleMonster.Widgets
A titled, boxed panel on a RunBoard: any widget, in the right rail or the insight row. The board fits panels into its height by RunBoardPanel.Priority: lower priorities shrink to RunBoardPanel.MinHeight first, then drop out whole, so a panel is never cut or shown without its title.
Inheritance
- object
- RunBoardPanel
Usage
Explore 2 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 1
- Property RunBoard.Panels
Accepted by parameters 1
- Method RunBoard.Panel
Constructors
public RunBoardPanel(string title, IWidget content) #Creates a panel that shows a widget the host keeps up to date.
Parameters
- title string
- The literal title, drawn in the top border.
- content ConsoleMonster.Layout.IWidget
- The widget.
public RunBoardPanel(string title, Func<RunSnapshot, IWidget> build) #Creates a panel built for each frame from the run's state.
Parameters
- title string
- The literal title, drawn in the top border.
- build System.Func<ConsoleMonster.Live.RunSnapshot, ConsoleMonster.Layout.IWidget>
- Builds the widget from the snapshot the frame draws.
Inherited Methods
Properties
public string? Caption { get; set; } #Literal text on the right of the top border (a count, a time), or null for none.
public RunBoardPlacement Placement { get; set; } #Where the panel goes on a wide board (default the right rail). Narrower boards place panels by priority.
public int Priority { get; set; } #How much the panel matters next to the others (default 50). The built-in panels use Results 95, Fix first 80, Failed by severity 70, Pass rate 60, Time per item 55 and Slowest so far 40.
public int Order { get; set; } #Where the panel is drawn among the others in its place (default 100: after the built-in panels, which use 10 to 50).
public int MinHeight { get; set; } #The fewest content rows the panel is shown with, for content that reads in part, such as a list; or 0 (default) to show the whole content or nothing. With less room the panel drops out.
public int MaxHeight { get; set; } #The most content rows the panel takes (default 0: as many as its content measures).
public IWidget? Content { get; } #The widget a static panel shows, or null for one built per frame.