Table of Contents

Class PaletteItem

Namespace
MiniTui
Assembly
MiniTui.dll

An item in a CommandPalette (1.x spec §13.3).

public sealed record PaletteItem : IEquatable<PaletteItem>
Inheritance
PaletteItem
Implements
Inherited Members

Constructors

PaletteItem(string, Action)

An item in a CommandPalette (1.x spec §13.3).

public PaletteItem(string Label, Action Run)

Parameters

Label string

The text that's matched and shown, such as "Refresh".

Run Action

Called on the UI thread after the palette closes, when the item is chosen.

Properties

Detail

Muted text shown after the label, not matched: a group or a command's description.

public string? Detail { get; init; }

Property Value

string

Hint

Display-only text drawn right-aligned and muted, such as a key: "ctrl+s".

public string? Hint { get; init; }

Property Value

string

Label

The text that's matched and shown, such as "Refresh".

public string Label { get; init; }

Property Value

string

Run

Called on the UI thread after the palette closes, when the item is chosen.

public Action Run { get; init; }

Property Value

Action