Table of Contents

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

Label string

The text displayed on the button.

Verdict FlowVerdict

The FlowVerdict emitted when the button is clicked.

Enabled bool

Whether 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

bool

Label

The text displayed on the button.

public string Label { get; init; }

Property Value

string

Verdict

The FlowVerdict emitted when the button is clicked.

public FlowVerdict Verdict { get; init; }

Property Value

FlowVerdict