pub struct ColumnMeta {Show 13 fields
pub id: ColumnId,
pub header: String,
pub footer: Option<String>,
pub sortable: bool,
pub filterable: bool,
pub resizable: bool,
pub visible: bool,
pub min_width: Option<f64>,
pub max_width: Option<f64>,
pub default_width: Option<f64>,
pub is_group: bool,
pub parent_id: Option<ColumnId>,
pub filter_placeholder: Option<String>,
}Expand description
Metadata for a column that affects its behavior.
Controls column display properties, interaction capabilities, and sizing constraints.
Fields§
§id: ColumnIdThe column ID.
header: StringDisplay header text.
Footer text.
sortable: boolWhether the column is sortable.
filterable: boolWhether the column is filterable.
resizable: boolWhether the column is resizable.
visible: boolWhether the column is visible by default.
min_width: Option<f64>Minimum column width in pixels.
max_width: Option<f64>Maximum column width in pixels.
default_width: Option<f64>Default column width in pixels.
is_group: boolWhether this is a group column (contains sub-columns).
parent_id: Option<ColumnId>Parent column ID for nested columns.
filter_placeholder: Option<String>Placeholder text for column filter input.
Implementations§
Source§impl ColumnMeta
impl ColumnMeta
Sourcepub fn with_sortable(self, sortable: bool) -> Self
pub fn with_sortable(self, sortable: bool) -> Self
Sourcepub fn with_filterable(self, filterable: bool) -> Self
pub fn with_filterable(self, filterable: bool) -> Self
Sourcepub fn with_resizable(self, resizable: bool) -> Self
pub fn with_resizable(self, resizable: bool) -> Self
Sourcepub fn with_visible(self, visible: bool) -> Self
pub fn with_visible(self, visible: bool) -> Self
Sourcepub fn with_min_width(self, width: f64) -> Self
pub fn with_min_width(self, width: f64) -> Self
Sourcepub fn with_max_width(self, width: f64) -> Self
pub fn with_max_width(self, width: f64) -> Self
Sourcepub fn with_default_width(self, width: f64) -> Self
pub fn with_default_width(self, width: f64) -> Self
Sourcepub fn with_filter_placeholder(self, placeholder: impl Into<String>) -> Self
pub fn with_filter_placeholder(self, placeholder: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for ColumnMeta
impl Clone for ColumnMeta
Source§fn clone(&self) -> ColumnMeta
fn clone(&self) -> ColumnMeta
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 ColumnMeta
impl Debug for ColumnMeta
Auto Trait Implementations§
impl Freeze for ColumnMeta
impl RefUnwindSafe for ColumnMeta
impl Send for ColumnMeta
impl Sync for ColumnMeta
impl Unpin for ColumnMeta
impl UnsafeUnpin for ColumnMeta
impl UnwindSafe for ColumnMeta
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