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) -> ColumnMeta
pub fn with_sortable(self, sortable: bool) -> ColumnMeta
Sourcepub fn with_filterable(self, filterable: bool) -> ColumnMeta
pub fn with_filterable(self, filterable: bool) -> ColumnMeta
Sourcepub fn with_resizable(self, resizable: bool) -> ColumnMeta
pub fn with_resizable(self, resizable: bool) -> ColumnMeta
Sourcepub fn with_visible(self, visible: bool) -> ColumnMeta
pub fn with_visible(self, visible: bool) -> ColumnMeta
Sourcepub fn with_min_width(self, width: f64) -> ColumnMeta
pub fn with_min_width(self, width: f64) -> ColumnMeta
Sourcepub fn with_max_width(self, width: f64) -> ColumnMeta
pub fn with_max_width(self, width: f64) -> ColumnMeta
Sourcepub fn with_default_width(self, width: f64) -> ColumnMeta
pub fn with_default_width(self, width: f64) -> ColumnMeta
Sourcepub fn with_filter_placeholder(
self,
placeholder: impl Into<String>,
) -> ColumnMeta
pub fn with_filter_placeholder( self, placeholder: impl Into<String>, ) -> ColumnMeta
Sourcepub fn as_group(self) -> ColumnMeta
pub fn as_group(self) -> ColumnMeta
Marks this column as a group column.
Group columns contain sub-columns and are not sortable or filterable.
§Returns
Self: The modified column metadata.
Sourcepub fn with_parent(self, parent_id: impl Into<ColumnId>) -> ColumnMeta
pub fn with_parent(self, parent_id: impl Into<ColumnId>) -> ColumnMeta
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
Source§impl Default for ColumnMeta
Provides a default column metadata with empty ID and header.
impl Default for ColumnMeta
Provides a default column metadata with empty ID and header.
Source§fn default() -> ColumnMeta
fn default() -> ColumnMeta
Returns the “default value” for a type. Read more
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
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.