pub struct DataTableColumn {
pub title: String,
pub header_widget: Option<Arc<dyn Fn(&mut Ui) + Send + Sync>>,
pub width: f32,
pub numeric: bool,
pub sortable: bool,
pub sort_direction: Option<SortDirection>,
pub h_align: HAlign,
pub v_align: VAlign,
pub tooltip: Option<String>,
pub heading_alignment: Option<HAlign>,
pub column_width: ColumnWidth,
}Fields§
§title: StringDisplay title for the column header (can be text or widget closure)
header_widget: Option<Arc<dyn Fn(&mut Ui) + Send + Sync>>Optional widget builder for custom header content
width: f32Fixed width of the column in pixels
numeric: boolWhether the column contains numeric data (affects alignment and sorting)
sortable: boolWhether this column can be sorted by clicking the header
sort_direction: Option<SortDirection>Current sort direction for this column (if sorted)
h_align: HAlignHorizontal alignment for column cells
v_align: VAlignVertical alignment for column cells
tooltip: Option<String>Tooltip text for column header
heading_alignment: Option<HAlign>Heading text alignment (separate from cell alignment)
column_width: ColumnWidthColumn width specification
Trait Implementations§
Source§impl Clone for DataTableColumn
impl Clone for DataTableColumn
Source§fn clone(&self) -> DataTableColumn
fn clone(&self) -> DataTableColumn
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 Freeze for DataTableColumn
impl !RefUnwindSafe for DataTableColumn
impl Send for DataTableColumn
impl Sync for DataTableColumn
impl Unpin for DataTableColumn
impl UnsafeUnpin for DataTableColumn
impl !UnwindSafe for DataTableColumn
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.