pub struct DataTableProps {
pub columns: Vec<Column>,
pub data_path: String,
pub row_actions: Option<Vec<DropdownMenuAction>>,
pub empty_message: Option<String>,
pub row_key: Option<String>,
}Expand description
Props for the DataTable component — Stripe-style alternating rows with DropdownMenu per row, mobile card fallback, and empty state.
Fields§
§columns: Vec<Column>§data_path: String§row_actions: Option<Vec<DropdownMenuAction>>§empty_message: Option<String>§row_key: Option<String>Trait Implementations§
Source§impl Clone for DataTableProps
impl Clone for DataTableProps
Source§fn clone(&self) -> DataTableProps
fn clone(&self) -> DataTableProps
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 Debug for DataTableProps
impl Debug for DataTableProps
Source§impl<'de> Deserialize<'de> for DataTableProps
impl<'de> Deserialize<'de> for DataTableProps
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DataTableProps
impl PartialEq for DataTableProps
Source§impl Serialize for DataTableProps
impl Serialize for DataTableProps
impl StructuralPartialEq for DataTableProps
Auto Trait Implementations§
impl Freeze for DataTableProps
impl RefUnwindSafe for DataTableProps
impl Send for DataTableProps
impl Sync for DataTableProps
impl Unpin for DataTableProps
impl UnsafeUnpin for DataTableProps
impl UnwindSafe for DataTableProps
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