pub struct TableProps {
pub data: Vec<HashMap<&'static str, String>>,
pub columns: Vec<Column>,
pub page_size: usize,
pub loading: bool,
pub classes: TableClasses,
pub styles: HashMap<&'static str, &'static str>,
pub paginate: bool,
pub search: bool,
pub texts: TableTexts,
}
Available on crate feature
yew
only.Expand description
Props for the main table component.
Fieldsยง
ยงdata: Vec<HashMap<&'static str, String>>
Vector of row data as key-value pairs.
columns: Vec<Column>
List of column definitions.
page_size: usize
Number of rows per page.
loading: bool
Whether the table is currently in a loading state.
classes: TableClasses
Class names used to style the table.
styles: HashMap<&'static str, &'static str>
Optional inline styles mapped by component part.
paginate: bool
Whether to enable pagination.
search: bool
Whether to enable search functionality.
texts: TableTexts
Text labels for the table UI.
Trait Implementationsยง
Sourceยงimpl Clone for TableProps
impl Clone for TableProps
Sourceยงfn clone(&self) -> TableProps
fn clone(&self) -> TableProps
Returns a duplicate of the value. Read more
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSourceยงimpl PartialEq for TableProps
impl PartialEq for TableProps
Sourceยงimpl Properties for TableProps
impl Properties for TableProps
impl StructuralPartialEq for TableProps
Auto Trait Implementationsยง
impl Freeze for TableProps
impl !RefUnwindSafe for TableProps
impl !Send for TableProps
impl !Sync for TableProps
impl Unpin for TableProps
impl !UnwindSafe for TableProps
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Sourceยงimpl<T> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
Sourceยงfn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
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> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Sourceยงfn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self
to a value of a Properties
struct.Sourceยงimpl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Sourceยงfn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self
to a value of a Properties
struct.Sourceยงimpl<Ret> SpawnIfAsync<(), Ret> for Ret
impl<Ret> SpawnIfAsync<(), Ret> for Ret
Sourceยงimpl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
Sourceยงfn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
Sourceยงimpl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
Sourceยงfn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.