pub struct TableBodyProps<T: Clone + PartialEq + 'static> {
pub table: UseTableHandle<T>,
pub class: Classes,
pub tr_class: Classes,
pub td_class: Classes,
pub selected_class: Classes,
pub selectable: bool,
pub render_cell: Option<Callback<CellRenderContext<T>, Html>>,
}Expand description
Props for the TableBody component.
Fields§
§table: UseTableHandle<T>The table handle from use_table hook.
class: ClassesCustom class for the tbody element.
tr_class: ClassesCustom class for tr elements.
td_class: ClassesCustom class for td elements.
selected_class: ClassesCustom class for selected rows.
selectable: boolWhether rows are selectable by clicking.
render_cell: Option<Callback<CellRenderContext<T>, Html>>Custom cell renderer.
Trait Implementations§
Source§impl<T: Clone + Clone + PartialEq + 'static> Clone for TableBodyProps<T>
impl<T: Clone + Clone + PartialEq + 'static> Clone for TableBodyProps<T>
Source§fn clone(&self) -> TableBodyProps<T>
fn clone(&self) -> TableBodyProps<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 TableBodyProps<T>
impl<T> !RefUnwindSafe for TableBodyProps<T>
impl<T> !Send for TableBodyProps<T>
impl<T> !Sync for TableBodyProps<T>
impl<T> Unpin for TableBodyProps<T>
impl<T> UnsafeUnpin for TableBodyProps<T>
impl<T> !UnwindSafe for TableBodyProps<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.