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
blockBlockBuilder
Returns
Draw(Buffer, Rect)
Draw the field inside its block (or area).
public void Draw(Buffer buf, Rect area)
Parameters
Focused(bool)
Use the focused styles.
public SelectBuilder Focused(bool focused = true)
Parameters
focusedbool
Returns
Placeholder(string?)
Muted text shown while nothing is chosen.
public SelectBuilder Placeholder(string? placeholder)
Parameters
placeholderstring
Returns
State(SelectState)
The options and choice.
public SelectBuilder State(SelectState state)
Parameters
stateSelectState
Returns
Style(Style)
A style patched over the theme's input style.
public SelectBuilder Style(Style style)
Parameters
styleStyle