pub struct UiPane {
pub id: String,
pub title: String,
pub plugin: String,
pub close_on_escape: Option<bool>,
pub hold_toasts: Option<bool>,
pub background_color: Option<String>,
pub rows: Option<u64>,
pub columns: Option<u64>,
}Expand description
One placed pane in a UiPanesMessage roster.
Fields§
§id: StringThe pane’s id as the plugin opened it: 1 to 64 of letters, digits,
_, -.
title: StringThe pane’s tab label: the title its latest open gave, else its id.
Plugin-authored text: draw it as a text node, never as markup.
plugin: StringThe registry name of the plugin that opened it.
close_on_escape: Option<bool>true: Escape while the pane holds the keyboard, or at an idle empty
composer, closes it. Absent, Escape only returns the keyboard.
hold_toasts: Option<bool>true: the surface holds its transient toasts while this pane is
the one shown, and shows them once it closes.
background_color: Option<String>What the surface paints under this pane’s body while it is the one
shown: a theme key, a raw color, or transparent for nothing.
Plugin-authored: parse it, never write it into a style. Absent, the
surface’s own look stands (CLI 2.1.311+).
rows: Option<u64>The body rows its content asked for while seated inline; a request the person’s own sizing overrides.
columns: Option<u64>The body columns its content asked for while docked; a request the person’s own sizing overrides.