pub struct TableProps<T>{
pub data: MaybeSignal<Vec<T>>,
pub stripe: bool,
pub border: bool,
pub fixed: bool,
pub width: Option<AttributeValue>,
pub height: Option<AttributeValue>,
pub children: Children,
}Expand description
Props for the Table component.
§Required Props
- data:
impl Into<MaybeSignal<Vec<T>>> - children:
Children
§Optional Props
- stripe:
impl Into<bool> - border:
impl Into<bool> - fixed:
impl Into<bool> - width:
impl Into<AttributeValue> - height:
impl Into<AttributeValue>
Fields§
§data: MaybeSignal<Vec<T>>§stripe: bool§border: bool§fixed: bool§width: Option<AttributeValue>§height: Option<AttributeValue>§children: ChildrenImplementations§
Source§impl<T> TableProps<T>
impl<T> TableProps<T>
Sourcepub fn builder() -> TablePropsBuilder<T, ((), (), (), (), (), (), ())>
pub fn builder() -> TablePropsBuilder<T, ((), (), (), (), (), (), ())>
Create a builder for building TableProps.
On the builder, call .data(...), .stripe(...)(optional), .border(...)(optional), .fixed(...)(optional), .width(...)(optional), .height(...)(optional), .children(...) to set the values of the fields.
Finally, call .build() to create the instance of TableProps.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for TableProps<T>
impl<T> !RefUnwindSafe for TableProps<T>
impl<T> !Send for TableProps<T>
impl<T> !Sync for TableProps<T>
impl<T> Unpin for TableProps<T>where
T: Unpin,
impl<T> !UnwindSafe for TableProps<T>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more