pub struct table;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")
)
)
)
}Trait Implementations§
Source§impl Component for table
impl Component for table
Source§type Props<'__props> = TableProps<'__props>
type Props<'__props> = TableProps<'__props>
The component’s properties. The lifetime covers data borrowed from
the caller.
Source§fn render<'__a, '__props>(
self,
cx: &'__a Cx,
props: Self::Props<'__props>,
) -> impl Future<Output = Result<impl View>> + Send + '__awhere
Self: '__a,
Self::Props<'__props>: '__a,
'__props: '__a,
fn render<'__a, '__props>(
self,
cx: &'__a Cx,
props: Self::Props<'__props>,
) -> impl Future<Output = Result<impl View>> + Send + '__awhere
Self: '__a,
Self::Props<'__props>: '__a,
'__props: '__a,
fn props_builder<'a>() -> <Self::Props<'a> as Props>::Builder
Auto Trait Implementations§
impl Freeze for table
impl RefUnwindSafe for table
impl Send for table
impl Sync for table
impl Unpin for table
impl UnsafeUnpin for table
impl UnwindSafe for table
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