Item

io.worxbend.tui.widgets.MenuEntry.Item
final case class Item(label: String, shortcut: Option[String] = ..., enabled: Boolean = ...)

A row the user can land on. A disabled item renders dimmed and keyboard navigation skips it; shortcut is right-aligned hint text (e.g. ^S), never a live binding — the app wires the action.

Attributes

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
def selectable: Boolean

Whether keyboard/mouse navigation can land on this entry.

Whether keyboard/mouse navigation can land on this entry.

Attributes

Inherited from:
MenuEntry