pub struct TableColumnProps {
pub label: Option<String>,
pub prop: Option<String>,
pub width: Option<String>,
pub min_width: Option<String>,
pub fixed: Option<String>,
pub sortable: bool,
pub column_type: Option<String>,
pub resizable: bool,
pub align: String,
pub header_align: Option<String>,
pub show_overflow_tooltip: bool,
pub class: Option<String>,
}Expand description
TableColumn props
Fields§
§label: Option<String>Column label (header text)
prop: Option<String>Column prop/field name
width: Option<String>Column width
min_width: Option<String>Minimum column width
fixed: Option<String>Whether the column is fixed
sortable: boolWhether the column is sortable
column_type: Option<String>Column type (selection, index, expand)
resizable: boolWhether the column is resizable
align: StringText alignment
header_align: Option<String>Header alignment
show_overflow_tooltip: boolWhether to show overflow tooltip
class: Option<String>Implementations§
Source§impl TableColumnProps
impl TableColumnProps
Sourcepub fn builder() -> TableColumnPropsBuilder<((), (), (), (), (), (), (), (), (), (), (), ())>
pub fn builder() -> TableColumnPropsBuilder<((), (), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building TableColumnProps.
On the builder, call .label(...)(optional), .prop(...)(optional), .width(...)(optional), .min_width(...)(optional), .fixed(...)(optional), .sortable(...)(optional), .column_type(...)(optional), .resizable(...)(optional), .align(...)(optional), .header_align(...)(optional), .show_overflow_tooltip(...)(optional), .class(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of TableColumnProps.
Trait Implementations§
Source§impl Clone for TableColumnProps
impl Clone for TableColumnProps
Source§fn clone(&self) -> TableColumnProps
fn clone(&self) -> TableColumnProps
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl PartialEq for TableColumnProps
impl PartialEq for TableColumnProps
Source§fn eq(&self, other: &TableColumnProps) -> bool
fn eq(&self, other: &TableColumnProps) -> bool
self and other values to be equal, and is used by ==.