ContentBuilder
ConsoleMonster.Layout
Collects nested widgets in source order, mirroring a PowerShell Content script block.
Inheritance
- object
- ContentBuilder
Usage
Explore 56 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 36
- Method ContentBuilder.ActivityList
- Method ContentBuilder.Add
- Method ContentBuilder.Align
- Method ContentBuilder.Binding
- Method ContentBuilder.Button
- Method ContentBuilder.Calendar
- Method ContentBuilder.CellMap
- Method ContentBuilder.Chart
- Method ContentBuilder.Columns
- Method ContentBuilder.Dashboard
- Method ContentBuilder.Flow
- Method ContentBuilder.FooterBar
- Method ContentBuilder.HeaderBar
- Method ContentBuilder.KeyValue
- Method ContentBuilder.Lanes
- Method ContentBuilder.LayoutGrid
- Method ContentBuilder.Logo
- Method ContentBuilder.LogRegion
- Method ContentBuilder.Padding
- Method ContentBuilder.Panel
- Method ContentBuilder.Phases
- Method ContentBuilder.Progress
- Method ContentBuilder.Region
- Method ContentBuilder.Rows
- Method ContentBuilder.Rule
- Method ContentBuilder.ScrollView
- Method ContentBuilder.Select
- Method ContentBuilder.Stack
- Method ContentBuilder.StatusList
- Method ContentBuilder.SummaryBar
- Method ContentBuilder.Table
- Method ContentBuilder.Table``1
- Method ContentBuilder.Text
- Method ContentBuilder.TextInput
- Method ContentBuilder.Toggle
- Method ContentBuilder.Tree
Accepted by parameters 20
- Extension method Align.Content
- Method AlignFluent.Content
- Extension method Columns.Content
- Method ColumnsFluent.Content
- Extension method Grid.Content
- Method GridFluent.Content
- Extension method Padding.Content
- Method PaddingFluent.Content
- Extension method Panel.Content
- Method PanelFluent.Content
- Extension method Rows.Content
- Method RowsFluent.Content
- Extension method Stack.Content
- Method StackFluent.Content
- Extension method Dashboard.Content
- Method DashboardFluent.Content
- Extension method RegionWidget.Content
- Method RegionWidgetFluent.Content
- Extension method ScrollView.Content
- Method ScrollViewFluent.Content
Constructors
public ContentBuilder() #Methods
public ContentBuilder ActivityList(Action<ActivityList>? configure = null) #Adds a ActivityList configured with the same chain as Ui.ActivityList().
Parameters
- configure System.Action<ConsoleMonster.Widgets.ActivityList>? = null
- Configures the empty widget before adding it.
public ContentBuilder ActivityList(ActivityList widget) #Adds a configured ActivityList instance.
Parameters
- widget ConsoleMonster.Widgets.ActivityList
- The widget.
public ContentBuilder Add(IWidget widget) #Adds a constructed widget and returns this builder.
Parameters
- widget ConsoleMonster.Layout.IWidget
- The widget to add.
public ContentBuilder Align(Action<Align>? configure = null) #Adds a Align configured with the same chain as Ui.Align().
Parameters
- configure System.Action<ConsoleMonster.Layout.Align>? = null
- Configures the empty widget before adding it.
public ContentBuilder Align(Align widget) #Adds a configured Align instance.
Parameters
- widget ConsoleMonster.Layout.Align
- The widget.
public ContentBuilder Binding(Action<BindingOptions> configure) #Configures and materializes Binding through its shared factory before adding it.
Parameters
- configure System.Action<ConsoleMonster.Interactive.BindingOptions>
- The definition configuration.
public ContentBuilder Binding(BindingOptions options) #Adds a configured Binding definition.
Parameters
- options ConsoleMonster.Interactive.BindingOptions
- The definition.
public ContentBuilder Binding(IWidget widget) #Adds an already materialized Binding widget without rebuilding it.
Parameters
- widget ConsoleMonster.Layout.IWidget
- The configured widget.
public IWidget Build() #Composes the collected widgets; no widgets produce empty content.
public ContentBuilder Button(Action<ButtonInputOptions> configure) #Configures and materializes Button through its shared factory before adding it.
Parameters
- configure System.Action<ConsoleMonster.Interactive.ButtonInputOptions>
- The definition configuration.
public ContentBuilder Button(ButtonInputOptions options) #Adds a configured Button definition.
Parameters
- options ConsoleMonster.Interactive.ButtonInputOptions
- The definition.
public ContentBuilder Button(IWidget widget) #Adds an already materialized Button widget without rebuilding it.
Parameters
- widget ConsoleMonster.Layout.IWidget
- The configured widget.
public ContentBuilder Calendar(Action<Calendar>? configure = null) #Adds a Calendar configured with the same chain as Ui.Calendar().
Parameters
- configure System.Action<ConsoleMonster.Widgets.Calendar>? = null
- Configures the empty widget before adding it.
public ContentBuilder Calendar(Calendar widget) #Adds a configured Calendar instance.
Parameters
- widget ConsoleMonster.Widgets.Calendar
- The widget.
public ContentBuilder CellMap(Action<CellMap>? configure = null) #Adds a CellMap configured with the same chain as Ui.CellMap().
Parameters
- configure System.Action<ConsoleMonster.Widgets.CellMap>? = null
- Configures the empty widget before adding it.
public ContentBuilder CellMap(CellMap widget) #Adds a configured CellMap instance.
Parameters
- widget ConsoleMonster.Widgets.CellMap
- The widget.
public ContentBuilder Chart(Action<ChartOptions>? configure = null) #Configures and materializes Chart through its shared factory before adding it.
Parameters
- configure System.Action<ConsoleMonster.Widgets.ChartOptions>? = null
- The definition configuration.
public ContentBuilder Chart(ChartOptions options) #Adds a configured Chart definition.
Parameters
- options ConsoleMonster.Widgets.ChartOptions
- The definition.
public ContentBuilder Chart(IWidget widget) #Adds an already materialized Chart widget without rebuilding it.
Parameters
- widget ConsoleMonster.Layout.IWidget
- The configured widget.
public ContentBuilder Columns(Action<Columns>? configure = null) #Adds a Columns configured with the same chain as Ui.Columns().
Parameters
- configure System.Action<ConsoleMonster.Layout.Columns>? = null
- Configures the empty widget before adding it.
public ContentBuilder Columns(Columns widget) #Adds a configured Columns instance.
Parameters
- widget ConsoleMonster.Layout.Columns
- The widget.
public ContentBuilder Dashboard(Action<Dashboard>? configure = null) #Adds a Dashboard configured with the same chain as Ui.Dashboard().
Parameters
- configure System.Action<ConsoleMonster.Widgets.Dashboard>? = null
- Configures the empty widget before adding it.
public ContentBuilder Dashboard(Dashboard widget) #Adds a configured Dashboard instance.
Parameters
- widget ConsoleMonster.Widgets.Dashboard
- The widget.
public ContentBuilder Flow(Action<Flow>? configure = null) #Adds a Flow configured with the same chain as Ui.Flow().
Parameters
- configure System.Action<ConsoleMonster.Widgets.Flow>? = null
- Configures the empty widget before adding it.
public ContentBuilder Flow(Flow widget) #Adds a configured Flow instance.
Parameters
- widget ConsoleMonster.Widgets.Flow
- The widget.
public ContentBuilder HeaderBar(Action<HeaderBar>? configure = null) #Adds a HeaderBar configured with the same chain as Ui.HeaderBar().
Parameters
- configure System.Action<ConsoleMonster.Widgets.HeaderBar>? = null
- Configures the empty widget before adding it.
public ContentBuilder HeaderBar(HeaderBar widget) #Adds a configured HeaderBar instance.
Parameters
- widget ConsoleMonster.Widgets.HeaderBar
- The widget.
public ContentBuilder KeyValue(Action<KeyValueList>? configure = null) #Adds a KeyValue configured with the same chain as Ui.KeyValue().
Parameters
- configure System.Action<ConsoleMonster.Widgets.KeyValueList>? = null
- Configures the empty widget before adding it.
public ContentBuilder KeyValue(KeyValueList widget) #Adds a configured KeyValue instance.
Parameters
- widget ConsoleMonster.Widgets.KeyValueList
- The widget.
public ContentBuilder Lanes(Action<Lanes>? configure = null) #Adds a Lanes configured with the same chain as Ui.Lanes().
Parameters
- configure System.Action<ConsoleMonster.Widgets.Lanes>? = null
- Configures the empty widget before adding it.
public ContentBuilder Lanes(Lanes widget) #Adds a configured Lanes instance.
Parameters
- widget ConsoleMonster.Widgets.Lanes
- The widget.
public ContentBuilder LayoutGrid(Action<Grid>? configure = null) #Adds a LayoutGrid configured with the same chain as Ui.LayoutGrid().
Parameters
- configure System.Action<ConsoleMonster.Layout.Grid>? = null
- Configures the empty widget before adding it.
public ContentBuilder LayoutGrid(Grid widget) #Adds a configured LayoutGrid instance.
Parameters
- widget ConsoleMonster.Layout.Grid
- The widget.
public ContentBuilder Logo(Action<Logo>? configure = null) #Adds a Logo configured with the same chain as Ui.Logo().
Parameters
- configure System.Action<ConsoleMonster.Widgets.Logo>? = null
- Configures the empty widget before adding it.
public ContentBuilder Logo(Logo widget) #Adds a configured Logo instance.
Parameters
- widget ConsoleMonster.Widgets.Logo
- The widget.
public ContentBuilder LogRegion(Action<LogRegion>? configure = null) #Adds a LogRegion configured with the same chain as Ui.LogRegion().
Parameters
- configure System.Action<ConsoleMonster.Widgets.LogRegion>? = null
- Configures the empty widget before adding it.
public ContentBuilder LogRegion(LogRegion widget) #Adds a configured LogRegion instance.
Parameters
- widget ConsoleMonster.Widgets.LogRegion
- The widget.
public ContentBuilder Padding(Action<Padding>? configure = null) #Adds a Padding configured with the same chain as Ui.Padding().
Parameters
- configure System.Action<ConsoleMonster.Layout.Padding>? = null
- Configures the empty widget before adding it.
public ContentBuilder Padding(Padding widget) #Adds a configured Padding instance.
Parameters
- widget ConsoleMonster.Layout.Padding
- The widget.
public ContentBuilder Panel(Action<Panel>? configure = null) #Adds a Panel configured with the same chain as Ui.Panel().
Parameters
- configure System.Action<ConsoleMonster.Layout.Panel>? = null
- Configures the empty widget before adding it.
public ContentBuilder Panel(Panel widget) #Adds a configured Panel instance.
Parameters
- widget ConsoleMonster.Layout.Panel
- The widget.
public ContentBuilder Phases(Action<Phases>? configure = null) #Adds a Phases configured with the same chain as Ui.Phases().
Parameters
- configure System.Action<ConsoleMonster.Widgets.Phases>? = null
- Configures the empty widget before adding it.
public ContentBuilder Phases(Phases widget) #Adds a configured Phases instance.
Parameters
- widget ConsoleMonster.Widgets.Phases
- The widget.
public ContentBuilder Progress(Action<ProgressOptions>? configure = null) #Configures and materializes Progress through its shared factory before adding it.
Parameters
- configure System.Action<ConsoleMonster.Widgets.ProgressOptions>? = null
- The definition configuration.
public ContentBuilder Progress(ProgressOptions options) #Adds a configured Progress definition.
Parameters
- options ConsoleMonster.Widgets.ProgressOptions
- The definition.
public ContentBuilder Progress(IWidget widget) #Adds an already materialized Progress widget without rebuilding it.
Parameters
- widget ConsoleMonster.Layout.IWidget
- The configured widget.
public ContentBuilder Region(Action<RegionWidget>? configure = null) #Adds a Region configured with the same chain as Ui.Region().
Parameters
- configure System.Action<ConsoleMonster.Widgets.RegionWidget>? = null
- Configures the empty widget before adding it.
public ContentBuilder Region(RegionWidget widget) #Adds a configured Region instance.
Parameters
- widget ConsoleMonster.Widgets.RegionWidget
- The widget.
public ContentBuilder Rows(Action<Rows>? configure = null) #Adds a Rows configured with the same chain as Ui.Rows().
Parameters
- configure System.Action<ConsoleMonster.Layout.Rows>? = null
- Configures the empty widget before adding it.
public ContentBuilder Rows(Rows widget) #Adds a configured Rows instance.
Parameters
- widget ConsoleMonster.Layout.Rows
- The widget.
public ContentBuilder Rule(Action<Rule>? configure = null) #Adds a Rule configured with the same chain as Ui.Rule().
Parameters
- configure System.Action<ConsoleMonster.Widgets.Rule>? = null
- Configures the empty widget before adding it.
public ContentBuilder Rule(Rule widget) #Adds a configured Rule instance.
Parameters
- widget ConsoleMonster.Widgets.Rule
- The widget.
public ContentBuilder Rule(string? title) #Adds a titled or untitled rule, matching Ui.Rule.
Parameters
- title string?
- The optional primary title, or null.
public ContentBuilder ScrollView(Action<ScrollView>? configure = null) #Adds a ScrollView configured with the same chain as Ui.ScrollView().
Parameters
- configure System.Action<ConsoleMonster.Widgets.ScrollView>? = null
- Configures the empty widget before adding it.
public ContentBuilder ScrollView(ScrollView widget) #Adds a configured ScrollView instance.
Parameters
- widget ConsoleMonster.Widgets.ScrollView
- The widget.
public ContentBuilder Select(Action<SelectInputOptions> configure) #Configures and materializes Select through its shared factory before adding it.
Parameters
- configure System.Action<ConsoleMonster.Interactive.SelectInputOptions>
- The definition configuration.
public ContentBuilder Select(SelectInputOptions options) #Adds a configured Select definition.
Parameters
- options ConsoleMonster.Interactive.SelectInputOptions
- The definition.
public ContentBuilder Select(IWidget widget) #Adds an already materialized Select widget without rebuilding it.
Parameters
- widget ConsoleMonster.Layout.IWidget
- The configured widget.
public ContentBuilder Stack(Action<Stack>? configure = null) #Adds a Stack configured with the same chain as Ui.Stack().
Parameters
- configure System.Action<ConsoleMonster.Layout.Stack>? = null
- Configures the empty widget before adding it.
public ContentBuilder Stack(Stack widget) #Adds a configured Stack instance.
Parameters
- widget ConsoleMonster.Layout.Stack
- The widget.
public ContentBuilder StatusList(Action<StatusList>? configure = null) #Adds a status list using the Ui.StatusList chain.
Parameters
- configure System.Action<ConsoleMonster.Widgets.StatusList>? = null
- Configures the list.
public ContentBuilder StatusList(StatusList widget) #Adds a configured status list.
Parameters
- widget ConsoleMonster.Widgets.StatusList
- The list.
public ContentBuilder SummaryBar(Action<SummaryBar>? configure = null) #Adds a SummaryBar configured with the same chain as Ui.SummaryBar().
Parameters
- configure System.Action<ConsoleMonster.Widgets.SummaryBar>? = null
- Configures the empty widget before adding it.
public ContentBuilder SummaryBar(SummaryBar widget) #Adds a configured SummaryBar instance.
Parameters
- widget ConsoleMonster.Widgets.SummaryBar
- The widget.
public ContentBuilder Table(Action<Table>? configure = null) #Adds a Table configured with the same chain as Ui.Table().
Parameters
- configure System.Action<ConsoleMonster.Widgets.Table>? = null
- Configures the empty widget before adding it.
public ContentBuilder Table(Table widget) #Adds a configured Table instance.
Parameters
- widget ConsoleMonster.Widgets.Table
- The widget.
public ContentBuilder Table<T>(IEnumerable<T?> items, Action<Table<T?>>? configure = null) #Adds a table over primary typed rows and configures its columns in one operation.
Type Parameters
- T
- The row type.
Parameters
- items System.Collections.Generic.IEnumerable<T?>
- The primary row sequence.
- configure System.Action<ConsoleMonster.Widgets.Table<T?>>? = null
- Configures typed columns.
public ContentBuilder Text(Action<TextBlock>? configure = null) #Adds a Text configured with the same chain as Ui.Text().
Parameters
- configure System.Action<ConsoleMonster.Widgets.TextBlock>? = null
- Configures the empty widget before adding it.
public ContentBuilder Text(TextBlock widget) #Adds a configured Text instance.
Parameters
- widget ConsoleMonster.Widgets.TextBlock
- The widget.
public ContentBuilder Text(string text) #Adds literal text, matching Ui.Text and New-ConsoleText's primary text input.
Parameters
- text string
- The literal text.
public ContentBuilder TextInput(Action<TextInputOptions> configure) #Configures and materializes TextInput through its shared factory before adding it.
Parameters
- configure System.Action<ConsoleMonster.Interactive.TextInputOptions>
- The definition configuration.
public ContentBuilder TextInput(TextInputOptions options) #Adds a configured TextInput definition.
Parameters
- options ConsoleMonster.Interactive.TextInputOptions
- The definition.
public ContentBuilder TextInput(IWidget widget) #Adds an already materialized TextInput widget without rebuilding it.
Parameters
- widget ConsoleMonster.Layout.IWidget
- The configured widget.
public ContentBuilder Toggle(Action<ToggleInputOptions> configure) #Configures and materializes Toggle through its shared factory before adding it.
Parameters
- configure System.Action<ConsoleMonster.Interactive.ToggleInputOptions>
- The definition configuration.
public ContentBuilder Toggle(ToggleInputOptions options) #Adds a configured Toggle definition.
Parameters
- options ConsoleMonster.Interactive.ToggleInputOptions
- The definition.
public ContentBuilder Toggle(IWidget widget) #Adds an already materialized Toggle widget without rebuilding it.
Parameters
- widget ConsoleMonster.Layout.IWidget
- The configured widget.
public ContentBuilder Tree(Action<Tree>? configure = null) #Adds a Tree configured with the same chain as Ui.Tree().
Parameters
- configure System.Action<ConsoleMonster.Widgets.Tree>? = null
- Configures the empty widget before adding it.
public ContentBuilder Tree(Tree widget) #Adds a configured Tree instance.
Parameters
- widget ConsoleMonster.Widgets.Tree
- The widget.