pub struct TableProps<'__a> {
pub attrs: Attributes,
pub child: Child<'__a>,
}Expand description
A table inside a horizontally scrollable container.
Extra padding on the left and right aligns the cells with a card’s content. Top and bottom borders separate the table from neighboring elements. A border is omitted when the table is the first or last child on that side.
Pass table sections as children. attrs are forwarded to the <table>, with extra
classes added to its classes.
ⓘ
view! {
table(
table_header(
table_row(
table_head("Environment")
table_head("Status")
)
)
table_body(
table_row(
table_cell("production")
table_cell("Live")
)
)
)
}Fields§
§attrs: Attributes§child: Child<'__a>Implementations§
Source§impl<'__a> TableProps<'__a>
impl<'__a> TableProps<'__a>
Sourcepub fn builder() -> TablePropsBuilder<'__a>
pub fn builder() -> TablePropsBuilder<'__a>
Returns a TablePropsBuilder with no properties set.
Trait Implementations§
Auto Trait Implementations§
impl<'__a> !RefUnwindSafe for TableProps<'__a>
impl<'__a> !Sync for TableProps<'__a>
impl<'__a> !UnwindSafe for TableProps<'__a>
impl<'__a> Freeze for TableProps<'__a>
impl<'__a> Send for TableProps<'__a>
impl<'__a> Unpin for TableProps<'__a>
impl<'__a> UnsafeUnpin for TableProps<'__a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more