pub struct ColumnDefBuilder<T> { /* private fields */ }Expand description
Builder for creating column definitions with a fluent API.
Allows step-by-step configuration of column properties
before building the final ColumnDef instance.
Implementations§
Source§impl<T> ColumnDefBuilder<T>
impl<T> ColumnDefBuilder<T>
Sourcepub fn accessor<V, F>(self, f: F) -> ColumnDefBuilder<T>
pub fn accessor<V, F>(self, f: F) -> ColumnDefBuilder<T>
Sourcepub fn sortable(self, sortable: bool) -> ColumnDefBuilder<T>
pub fn sortable(self, sortable: bool) -> ColumnDefBuilder<T>
Sourcepub fn filterable(self, filterable: bool) -> ColumnDefBuilder<T>
pub fn filterable(self, filterable: bool) -> ColumnDefBuilder<T>
Sourcepub fn resizable(self, resizable: bool) -> ColumnDefBuilder<T>
pub fn resizable(self, resizable: bool) -> ColumnDefBuilder<T>
Sourcepub fn visible(self, visible: bool) -> ColumnDefBuilder<T>
pub fn visible(self, visible: bool) -> ColumnDefBuilder<T>
Sourcepub fn min_width(self, width: f64) -> ColumnDefBuilder<T>
pub fn min_width(self, width: f64) -> ColumnDefBuilder<T>
Sourcepub fn max_width(self, width: f64) -> ColumnDefBuilder<T>
pub fn max_width(self, width: f64) -> ColumnDefBuilder<T>
Sourcepub fn default_width(self, width: f64) -> ColumnDefBuilder<T>
pub fn default_width(self, width: f64) -> ColumnDefBuilder<T>
Sourcepub fn filter_placeholder(
self,
placeholder: impl Into<String>,
) -> ColumnDefBuilder<T>
pub fn filter_placeholder( self, placeholder: impl Into<String>, ) -> ColumnDefBuilder<T>
Sourcepub fn sorting_fn(self, f: SortingFn<T>) -> ColumnDefBuilder<T>
pub fn sorting_fn(self, f: SortingFn<T>) -> ColumnDefBuilder<T>
Sourcepub fn filter_fn(self, f: FilterFn<T>) -> ColumnDefBuilder<T>
pub fn filter_fn(self, f: FilterFn<T>) -> ColumnDefBuilder<T>
Sourcepub fn aggregation_fn(self, f: AggregationFn<T>) -> ColumnDefBuilder<T>
pub fn aggregation_fn(self, f: AggregationFn<T>) -> ColumnDefBuilder<T>
Sourcepub fn enable_multi_sort(self, enable: bool) -> ColumnDefBuilder<T>
pub fn enable_multi_sort(self, enable: bool) -> ColumnDefBuilder<T>
Sourcepub fn invert_sorting(self, invert: bool) -> ColumnDefBuilder<T>
pub fn invert_sorting(self, invert: bool) -> ColumnDefBuilder<T>
Sourcepub fn sort_undefined_last(self, last: bool) -> ColumnDefBuilder<T>
pub fn sort_undefined_last(self, last: bool) -> ColumnDefBuilder<T>
Sourcepub fn columns(self, columns: Vec<ColumnDef<T>>) -> ColumnDefBuilder<T>
pub fn columns(self, columns: Vec<ColumnDef<T>>) -> ColumnDefBuilder<T>
Trait Implementations§
Source§impl<T> Default for ColumnDefBuilder<T>
Provides a default column definition builder with empty ID and header.
impl<T> Default for ColumnDefBuilder<T>
Provides a default column definition builder with empty ID and header.
Source§fn default() -> ColumnDefBuilder<T>
fn default() -> ColumnDefBuilder<T>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<T> Freeze for ColumnDefBuilder<T>
impl<T> !RefUnwindSafe for ColumnDefBuilder<T>
impl<T> Send for ColumnDefBuilder<T>
impl<T> Sync for ColumnDefBuilder<T>
impl<T> Unpin for ColumnDefBuilder<T>
impl<T> UnsafeUnpin for ColumnDefBuilder<T>
impl<T> !UnwindSafe for ColumnDefBuilder<T>
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> 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.