Table of Contents

Class DialogBase

Namespace
ItTiger.TigerCli.Tui.Abstractions
Assembly
ItTiger.TigerCli.dll
Base class for renderable modal dialogs that expose a result and optional payload.
public abstract class DialogBase : CliRenderableComponent, ICliDialog, IControl, ICliRenderable
Inheritance
DialogBase
Implements
Derived
Inherited Members

Properties

Payload

Optional value produced by the dialog when it completes.
public abstract object? Payload { get; }

Property Value

object

Result

The current dialog result, or NoResult while still active.
public abstract DialogResultKind Result { get; }

Property Value

DialogResultKind

Methods

HandleKey(KeyEvent)

Handles a key event. Returns true when the control consumed the key and the host should not apply fallback handling.
public abstract bool HandleKey(KeyEvent key)

Parameters

key KeyEvent

Returns

bool