Dialog
io.worxbend.tui.widgets.Dialog
final case class Dialog(title: String, message: Text, buttons: Seq[String] = ..., selectedButton: Int = ..., style: Style = ..., highlightStyle: Style = ..., borderType: BorderType = ...) extends Widget
A modal-style dialog drawn over existing content: clears a centered box, borders it, renders the message and a row of buttons with one highlighted.
The widget owns no state and manages no stack of its own — it paints over whatever was drawn into the buffer before it, so rendering it last in the view is what makes it modal-looking. The DSL's Screen stack (TuiApp.pushScreen) builds on exactly that.
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Widgetclass Objecttrait Matchableclass Any
Members list
In this article