Struct FlowButton
- Namespace
- SharpConsoleUI.Flows
- Assembly
- SharpConsoleUI.dll
A single rendered button in a flow's button row.
public readonly record struct FlowButton : IEquatable<FlowButton>
- Implements
- Inherited Members
- Extension Methods
Constructors
FlowButton(string, FlowVerdict, bool)
A single rendered button in a flow's button row.
public FlowButton(string Label, FlowVerdict Verdict, bool Enabled = true)
Parameters
LabelstringThe text displayed on the button.
VerdictFlowVerdictThe FlowVerdict emitted when the button is clicked.
EnabledboolWhether the button is currently interactive. Defaults to
true.
Properties
Enabled
Whether the button is currently interactive. Defaults to true.
public bool Enabled { get; init; }
Property Value
Label
The text displayed on the button.
public string Label { get; init; }
Property Value
Verdict
The FlowVerdict emitted when the button is clicked.
public FlowVerdict Verdict { get; init; }