pub struct DataTableProps<T: Clone + PartialEq + 'static> {
pub table: UseTableHandle<T>,
pub class: Classes,
pub table_class: Classes,
pub show_pagination: bool,
pub show_global_filter: bool,
pub filter_placeholder: String,
pub selectable: bool,
}Expand description
Props for the DataTable component.
This component accepts a pre-created table handle from the use_table hook.
For usage, create the table handle in your component and pass it here.
Fields§
§table: UseTableHandle<T>The table handle from use_table hook.
class: ClassesCustom class for the table container.
table_class: ClassesCustom class for the table element.
show_pagination: boolWhether to show pagination.
show_global_filter: boolWhether to show global filter.
filter_placeholder: StringPlaceholder for global filter input.
selectable: boolWhether rows are selectable.
Trait Implementations§
Source§impl<T: Clone + Clone + PartialEq + 'static> Clone for DataTableProps<T>
impl<T: Clone + Clone + PartialEq + 'static> Clone for DataTableProps<T>
Source§fn clone(&self) -> DataTableProps<T>
fn clone(&self) -> DataTableProps<T>
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 moreAuto Trait Implementations§
impl<T> !Freeze for DataTableProps<T>
impl<T> !RefUnwindSafe for DataTableProps<T>
impl<T> !Send for DataTableProps<T>
impl<T> !Sync for DataTableProps<T>
impl<T> Unpin for DataTableProps<T>
impl<T> UnsafeUnpin for DataTableProps<T>
impl<T> !UnwindSafe for DataTableProps<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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.