pub struct Block<'a> { /* private fields */ }Expand description
Base widget to be used with all upper level ones. It may be used to display a box border around the widget and/or add a title.
Examples
Block::default()
.title("Block")
.borders(Borders::LEFT | Borders::RIGHT)
.border_style(Style::default().fg(Color::White))
.border_type(BorderType::Rounded)
.style(Style::default().bg(Color::Black));Implementations
👎 Deprecated since 0.10.0:
You should use styling capabilities of text::Spans given as argument of the title method to apply styling to the title.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Block<'a>
impl<'a> UnwindSafe for Block<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more