ConsoleForge 0.3.0
Elm-architecture TUI framework for .NET 8
Loading...
Searching...
No Matches
ConsoleForge.Widgets Namespace Reference

Classes

class  BorderBox
 A widget that renders a bordered box with an optional title and a body child widget. More...
class  Checkbox
 A single toggleable checkbox widget. More...
class  Container
 A layout container that arranges child widgets along a given axis. More...
class  List
 A scrollable list widget that displays items and highlights the selected one. More...
class  Modal
 A centered dialog overlay widget. More...
class  ProgressBar
 A horizontal progress bar widget. More...
class  Spinner
 An animated spinner widget. More...
class  Table
 A tabular data widget. More...
class  Tabs
 A tabbed navigation widget. More...
class  TextArea
 A multi-line text input widget. More...
class  TextBlock
 A widget that renders a single string, wrapping at region width. More...
class  TextInput
 A single-line text input widget that accepts keyboard input when focused. More...
class  ZStack
 A layered widget that renders its children back-to-front over the same region. More...

Functions

record TableColumn (string Header, int Width=0, Style? Style=null)
 Defines a single column in a Table widget.

Variables

record ModalDismissedMsg
 Dispatched by convention when the user dismisses a modal (e.g.

Function Documentation

◆ TableColumn()

record ConsoleForge.Widgets.TableColumn ( string Header,
int Width = 0,
Style? Style = null )
sealed

Defines a single column in a Table widget.

Parameters
HeaderColumn header text.
WidthColumn width in characters. Use 0 to distribute remaining space equally among all zero-width columns.
StyleOptional per-column style for the data cells.

Variable Documentation

◆ ModalDismissedMsg

record ConsoleForge.Widgets.ModalDismissedMsg
sealed

Dispatched by convention when the user dismisses a modal (e.g.

presses Escape). The model should set its open-flag to false and remove the modal from the view tree.