Struct tuirealm::tui::widgets::Row [−][src]
pub struct Row<'a> { /* fields omitted */ }
Expand description
Holds data to be displayed in a Table
widget.
A Row
is a collection of cells. It can be created from simple strings:
Row::new(vec!["Cell1", "Cell2", "Cell3"]);Run
But if you need a bit more control over individual cells, you can explicity create Cell
s:
Row::new(vec![ Cell::from("Cell1"), Cell::from("Cell2").style(Style::default().fg(Color::Yellow)), ]);Run
By default, a row has a height of 1 but you can change this using Row::height
.
Implementations
pub fn new<T>(cells: T) -> Row<'a> where
T: IntoIterator,
<T as IntoIterator>::Item: Into<Cell<'a>>,
pub fn new<T>(cells: T) -> Row<'a> where
T: IntoIterator,
<T as IntoIterator>::Item: Into<Cell<'a>>,
Set the bottom margin. By default, the bottom margin is 0
.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Row<'a>
impl<'a> UnwindSafe for Row<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more