Table of Contents

Class SelectBuilder

Namespace
MiniTui
Assembly
MiniTui.dll

A dropdown field (1.x spec §7.5): the chosen option, or a muted placeholder, and a ▼ at the right edge.

public sealed class SelectBuilder
Inheritance
SelectBuilder
Inherited Members

Methods

Block(BlockBuilder)

Draw a block around the field. Its border shows focus.

public SelectBuilder Block(BlockBuilder block)

Parameters

block BlockBuilder

Returns

SelectBuilder

Draw(Buffer, Rect)

Draw the field inside its block (or area).

public void Draw(Buffer buf, Rect area)

Parameters

buf Buffer
area Rect

Focused(bool)

Use the focused styles.

public SelectBuilder Focused(bool focused = true)

Parameters

focused bool

Returns

SelectBuilder

Placeholder(string?)

Muted text shown while nothing is chosen.

public SelectBuilder Placeholder(string? placeholder)

Parameters

placeholder string

Returns

SelectBuilder

State(SelectState)

The options and choice.

public SelectBuilder State(SelectState state)

Parameters

state SelectState

Returns

SelectBuilder

Style(Style)

A style patched over the theme's input style.

public SelectBuilder Style(Style style)

Parameters

style Style

Returns

SelectBuilder