Panel
A box drawn around another widget, with optional top and bottom titles.
Example
terminal.print(Panel(
"my panel content",
title = "title",
bottomTitle = "subtitle",
titleAlign = TextAlign.LEFT,
bottomTitleAlign = TextAlign.RIGHT
))
Content copied to clipboard
╭─ title ────────╮
│my panel content│
╰───── subtitle ─╯
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(content: Widget, title: Widget? = null, bottomTitle: Widget? = null, expand: Boolean = false, padding: Padding = DEFAULT_PADDING, borderType: BorderType? = BorderType.ROUNDED, titleAlign: TextAlign = CENTER, bottomTitleAlign: TextAlign = titleAlign, borderStyle: TextStyle? = null, titlePadding: Int? = null)
constructor(content: String, title: String? = null, bottomTitle: String? = null, expand: Boolean = false, padding: Padding = DEFAULT_PADDING, borderType: BorderType? = BorderType.ROUNDED, titleAlign: TextAlign = CENTER, bottomTitleAlign: TextAlign = titleAlign, borderStyle: TextStyle? = null, titlePadding: Int? = null)