Ui
ConsoleMonster
The fluent entry point: empty widgets, named configuration and Content builders. Initializers use the same object model.
Inheritance
- object
- Ui
Methods
public static Accordion Accordion() #A group of collapsible sections that keeps one open.
public static ActivityList ActivityList(string widgetId = "$progress") #Empty ActivityList widget; the optional primary input is its live identity.
Parameters
- widgetId string = "$progress"
- The primary input.
public static Align Align() #Empty aligned container.
public static BarChart BarChart(string widgetId = "bars") #Creates a BarChart with typed fluent configuration.
Parameters
- widgetId string = "bars"
- The live identity retained by this widget.
public static BindingOptions Binding() #State-dependent display definition.
public static BreadcrumbInputOptions Breadcrumb() #Breadcrumb definition; Build delegates to AppInput.Breadcrumb.
public static ButtonInputOptions Button() #Button definition; Build delegates to AppInput.Button.
public static Calendar Calendar() #Calendar view; configure its date, view and marks in the chain.
public static CellMap CellMap(string widgetId = "cells") #Empty CellMap widget; the optional primary input is its live identity.
Parameters
- widgetId string = "cells"
- The primary input.
public static ChartOptions Chart(string title, Action<ChartOptions>? configure = null) #Creates a chart definition with its title and, optionally, configures it.
Parameters
- title string
- The title.
- configure System.Action<ConsoleMonster.Widgets.ChartOptions>? = null
- Configures the chart, or null.
public static ChartOptions Chart() #Numeric chart definition; Build delegates to Chart.Create.
public static ChartViewInputOptions ChartView() #An explorable chart definition; configure Key and Chart, then Build.
Returns
ChartViewInputOptionspublic static CodeView Code(string text) #Source text with syntax highlighting, line numbers, selection and pagination.
Parameters
- text string
Returns
CodeViewpublic static CollapsibleInputOptions Collapsible() #Collapsible section definition; Build delegates to AppInput.Collapsible.
Returns
CollapsibleInputOptions The collapsible section definition; Build delegates to AppInput.Collapsible.public static ColumnFormat ColumnFormat() #Column presentation format.
public static Columns Columns() #Empty horizontal composition.
public static CommandOptions Command() #Asynchronous action definition.
public static ConfirmPrompt ConfirmPrompt() #Confirmation question.
public static Dashboard Dashboard(string widgetId = "dashboard") #Empty dashboard; configure Title and Content in the chain.
Parameters
- widgetId string = "dashboard"
- The primary input.
public static DashboardFrame DashboardFrame(string title = "") #A summary frame: title line, meters, needs attention, sections, legend and footer (New-ConsoleDashboardFrame).
Parameters
- title string = ""
- The literal title, usually the view name.
public static DataGridInputOptions DataGrid() #An embeddable grid definition; configure Key and Grid, then Build.
Returns
DataGridInputOptionspublic static DatePickerInputOptions DatePicker() #A persistent civil-date or range picker definition.
Returns
DatePickerInputOptionspublic static Diagram Diagram(string title = "") #Starts a diagram chain using the same model as object initializers and PowerShell.
Parameters
- title string = ""
Returns
Diagrampublic static Diagram Diagram(string title, Action<Diagram>? configure = null) #Creates a diagram with its title and, optionally, configures it.
Parameters
- title string
- The title.
- configure System.Action<ConsoleMonster.Widgets.Diagram>? = null
- Configures the diagram, or null.
public static FormDialogOptions Dialog() #A composed modal form definition with named field results.
Returns
FormDialogOptionspublic static ViewFacts Facts() #Empty facts line; add counts, labels and semantic roles.
public static Flow Flow(string widgetId = "flow") #Empty flow; add nodes, edges and branches in the chain.
Parameters
- widgetId string = "flow"
- The optional primary live identity.
public static Form Form() #Empty sequential form.
public static Form Form(string title, Action<Form>? configure = null) #Creates a form with its title and, optionally, configures it.
Parameters
- title string
- The title.
- configure System.Action<ConsoleMonster.Interactive.Form>? = null
- Configures the form, or null.
public static Grid Grid() #Interactive record grid; configure Title and rows in the chain.
public static HeaderBar HeaderBar(string title, Action<HeaderBar>? configure = null) #Creates a header bar with its title and, optionally, configures it.
Parameters
- title string
- The title.
- configure System.Action<ConsoleMonster.Widgets.HeaderBar>? = null
- Configures the header, or null.
public static HeaderBar HeaderBar() #Empty header bar.
public static KeyValueList KeyValue(string widgetId = "keyvalue") #Empty KeyValue widget; the optional primary input is its live identity.
Parameters
- widgetId string = "keyvalue"
- The primary input.
public static Lanes Lanes(string widgetId = "lanes") #Empty Lanes widget; the optional primary input is its live identity.
Parameters
- widgetId string = "lanes"
- The primary input.
public static LayoutGrid LayoutGrid() #Empty layout grid; configure Columns before adding cells.
public static LayoutRegions LayoutRegions() #Swappable regions that show one active subtree at narrow widths.
Returns
LayoutRegionspublic static LineChart LineChart(string widgetId = "chart") #Creates a LineChart with typed fluent configuration.
Parameters
- widgetId string = "chart"
- The live identity retained by this widget.
public static Logo Logo() #Empty logo; configure Text and Tagline in the chain.
public static LogRegion LogRegion(string widgetId = "log") #Empty LogRegion widget; the optional primary input is its live identity.
Parameters
- widgetId string = "log"
- The primary input.
public static LogViewport LogViewport(string key = "log") #A retained, scrollable app log with a find bar: what New-ConsoleLogRegion makes inside Show-ConsoleApp content.
Parameters
- key string = "log"
- The app-state key, also the live target Write-ConsoleLogEntry -WidgetId addresses.
public static MarkdownView Markdown() #Creates a composable Markdown document from semantic blocks.
public static TextBlock Markup(string markup) #Markup text, matching New-ConsoleText -Markup.
Parameters
- markup string
- The markup input.
public static NumberPrompt NumberPrompt() #Numeric question.
public static OutlineInputOptions Outline() #Outline definition; Build delegates to AppInput.Outline.
public static Padding Padding() #Empty padded container.
public static Panel Panel() #Empty panel; configure Title and Content in the chain.
public static Panel Panel(string title, Action<Panel>? configure = null) #Creates a panel with its title and, optionally, configures it.
Parameters
- title string
- The title.
- configure System.Action<ConsoleMonster.Layout.Panel>? = null
- Configures the panel, or null.
public static PathPrompt PathPrompt() #Path question.
public static Phases Phases(string widgetId = "phases") #Empty Phases widget; the optional primary input is its live identity.
Parameters
- widgetId string = "phases"
- The primary input.
public static ProgressOptions Progress() #Progress definition; Build delegates to Progress.Create.
public static ProgressBar ProgressBar(string widgetId = "progress") #Creates a ProgressBar with typed fluent configuration.
Parameters
- widgetId string = "progress"
- The live identity retained by this widget.
public static RegionWidget Region(string widgetId = "region") #Empty Region widget; the optional primary input is its live identity.
Parameters
- widgetId string = "region"
- The primary input.
public static ReviewModel Review() #Creates an empty review model for a typed question workflow.
public static RichTextBuilder RichText() #Creates a rich-text composer.
public static Rows Rows() #Empty vertical composition.
public static Rule Rule(string? title = null) #Horizontal rule with an optional primary title.
Parameters
- title string? = null
- The primary input.
public static ScrollView ScrollView() #Empty scrolling container.
public static SelectInputOptions Select() #Selection control definition; Multiple selects the renderer at Build.
public static SelectQuestionOptions SelectQuestion() #Selection question, as Read-ConsoleSelect: configure Title and choices in the chain, Multiple for several answers, and end with Show().
public static ShellPrompt ShellPrompt() #A shell prompt with the same segments and layout as PowerShell's prompt feature.
Returns
ShellPromptpublic static Sparkline Sparkline(string widgetId = "sparkline") #Creates a Sparkline with typed fluent configuration.
Parameters
- widgetId string = "sparkline"
- The live identity retained by this widget.
public static Spinner Spinner(string widgetId = "spinner") #Creates a Spinner with typed fluent configuration.
Parameters
- widgetId string = "spinner"
- The live identity retained by this widget.
public static Splitter Splitter() #Two panes with a draggable divider.
public static Stack Stack() #Empty overlay composition.
public static StackedBar StackedBar(string widgetId = "stacked") #Creates a StackedBar with typed fluent configuration.
Parameters
- widgetId string = "stacked"
- The live identity retained by this widget.
public static StatusList StatusList(string widgetId = "status") #Empty status list.
Parameters
- widgetId string = "status"
- The optional primary live identity.
public static SummaryBar SummaryBar(string widgetId = "summary") #Empty SummaryBar widget; the optional primary input is its live identity.
Parameters
- widgetId string = "summary"
- The primary input.
public static Table Table() #Empty table; add columns and rows in the chain.
public static Table Table(string title, Action<Table>? configure = null) #Creates a table with its title and, optionally, configures it.
Parameters
- title string
- The title.
- configure System.Action<ConsoleMonster.Widgets.Table>? = null
- Configures the table, or null.
public static Table<T?> Table<T>(IEnumerable<T?> items) #A table over a primary sequence, preserving row identity and typed column selectors.
Type Parameters
- T
- The row type.
Parameters
- items System.Collections.Generic.IEnumerable<T?>
- The primary row sequence.
public static TextBlock Text(string text = "") #Literal text; use Ui.Markup(markup) for explicit markup.
Parameters
- text string = ""
- The primary input.
public static TextInputOptions TextInput() #Text control definition; Multiline selects the renderer at Build.
public static TextQuestionOptions TextQuestion() #Text question, as Read-ConsoleText: configure Title and validation in the chain, AsSecret or Multiline for the variant, and end with Show().
public static ToggleInputOptions Toggle() #Boolean control definition; Build delegates to AppInput.Toggle.
public static Tree Tree(string title, Action<Tree>? configure = null) #Creates a tree with its title and, optionally, configures it.
Parameters
- title string
- The title.
- configure System.Action<ConsoleMonster.Widgets.Tree>? = null
- Configures the tree, or null.
public static Tree Tree() #Empty object tree; configure Title in the chain.
public static TreeSelectInputOptions TreeSelect() #A budgeted, lazy object-tree input definition.
Returns
TreeSelectInputOptionspublic static TypedConfirmPrompt TypedConfirmPrompt() #Typed confirmation question; configure Expected in the chain.