pub struct DataTableState {
pub sorting: SortingState,
pub filtering: FilterState,
pub pagination: PaginationState,
pub row_selection: RowSelectionState,
pub expanding: ExpandingState,
pub column_visibility: ColumnVisibilityState,
pub column_ordering: ColumnOrderingState,
pub column_pinning: ColumnPinningState,
pub column_sizing: ColumnSizingState,
pub grouping: GroupingState,
pub aggregation: AggregationState,
}Expand description
Combined state for all table features.
DataTableState aggregates all feature states into a single structure
for easier management and passing around.
Fields§
§sorting: SortingStateSorting state.
filtering: FilterStateFiltering state.
pagination: PaginationStatePagination state.
row_selection: RowSelectionStateRow selection state.
expanding: ExpandingStateRow expansion state.
column_visibility: ColumnVisibilityStateColumn visibility state.
column_ordering: ColumnOrderingStateColumn ordering state.
column_pinning: ColumnPinningStateColumn pinning state.
column_sizing: ColumnSizingStateColumn sizing state.
grouping: GroupingStateRow grouping state.
aggregation: AggregationStateAggregation state.
Implementations§
Source§impl DataTableState
impl DataTableState
Sourcepub fn new() -> DataTableState
pub fn new() -> DataTableState
Sourcepub fn builder() -> DataTableStateBuilder
pub fn builder() -> DataTableStateBuilder
Sourcepub fn has_modifications(&self) -> bool
pub fn has_modifications(&self) -> bool
Checks if any state has been modified from defaults.
§Returns
bool: Whether any feature state differs from its default.
Trait Implementations§
Source§impl Clone for DataTableState
impl Clone for DataTableState
Source§fn clone(&self) -> DataTableState
fn clone(&self) -> DataTableState
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 DataTableState
impl Debug for DataTableState
Source§impl Default for DataTableState
impl Default for DataTableState
Source§fn default() -> DataTableState
fn default() -> DataTableState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DataTableState
impl RefUnwindSafe for DataTableState
impl Send for DataTableState
impl Sync for DataTableState
impl Unpin for DataTableState
impl UnsafeUnpin for DataTableState
impl UnwindSafe for DataTableState
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.