Skip to main content

TableOptions

Struct TableOptions 

Source
pub struct TableOptions {
Show 37 fields pub enable_pinning: bool, pub manual_filtering: bool, pub enable_filters: bool, pub enable_column_filters: bool, pub enable_global_filter: bool, pub filter_from_leaf_rows: bool, pub max_leaf_row_filter_depth: usize, pub manual_sorting: bool, pub manual_pagination: bool, pub auto_reset_page_index: Option<bool>, pub page_count: Option<i32>, pub row_count: Option<usize>, pub manual_expanding: bool, pub enable_expanding: bool, pub auto_reset_all: Option<bool>, pub auto_reset_expanded: Option<bool>, pub paginate_expanded_rows: bool, pub keep_pinned_rows: bool, pub enable_hiding: bool, pub enable_column_ordering: bool, pub enable_column_pinning: bool, pub enable_row_pinning: bool, pub enable_column_resizing: bool, pub enable_grouping: bool, pub enable_sorting: bool, pub enable_multi_sort: bool, pub max_multi_sort_col_count: Option<usize>, pub enable_sorting_removal: bool, pub enable_multi_remove: bool, pub sort_desc_first: Option<bool>, pub enable_row_selection: bool, pub enable_multi_row_selection: bool, pub enable_sub_row_selection: bool, pub manual_grouping: bool, pub grouped_column_mode: GroupedColumnMode, pub column_resize_mode: ColumnResizeMode, pub column_resize_direction: ColumnResizeDirection,
}
Expand description

Headless table options (TanStack-aligned semantics, Rust-native API).

Fields§

§enable_pinning: bool

Enables/disables pinning features globally (TanStack enablePinning).

§manual_filtering: bool

If enabled, filtering is assumed to be done externally (e.g. server-side).

When true, filtered_row_model() returns pre_filtered_row_model().

§enable_filters: bool

Enables/disables all filtering features (TanStack enableFilters).

§enable_column_filters: bool

Enables/disables per-column filtering (TanStack enableColumnFilters).

§enable_global_filter: bool

Enables/disables global filtering (TanStack enableGlobalFilter).

§filter_from_leaf_rows: bool

Filter children first and bubble matches to parents (TanStack filterFromLeafRows).

§max_leaf_row_filter_depth: usize

Maximum depth to apply leaf-row filtering recursion (TanStack maxLeafRowFilterDepth).

§manual_sorting: bool

If enabled, sorting is assumed to be done externally (e.g. server-side).

When true, sorted_row_model() returns pre_sorted_row_model().

§manual_pagination: bool

If enabled, pagination is assumed to be done externally (e.g. server-side).

When true, row_model() returns pre_pagination_row_model().

§auto_reset_page_index: Option<bool>

TanStack-aligned: pagination auto reset gate (autoResetPageIndex).

§page_count: Option<i32>

TanStack-aligned: total page count hint (pageCount).

When set to -1, the page count is treated as unknown.

§row_count: Option<usize>

TanStack-aligned: total row count hint (rowCount).

§manual_expanding: bool

If enabled, expanded row handling is assumed to be done externally.

When true, expanded_row_model() returns pre_expanded_row_model().

§enable_expanding: bool

Enables/disables expanding for all rows (TanStack enableExpanding).

§auto_reset_all: Option<bool>

TanStack-aligned: global auto reset gate (autoResetAll).

§auto_reset_expanded: Option<bool>

TanStack-aligned: expanded auto reset gate (autoResetExpanded).

§paginate_expanded_rows: bool

When true, pagination counts expanded rows (children) as part of the page.

This mirrors TanStack’s paginateExpandedRows behavior.

§keep_pinned_rows: bool

If true, pinned rows can remain visible even if they are outside the current filtered/sorted/paginated row set (TanStack keepPinnedRows).

§enable_hiding: bool

Whether to allow column hiding at the table level (TanStack enableHiding).

§enable_column_ordering: bool

Whether to allow column ordering at the table level (TanStack enableColumnOrdering).

§enable_column_pinning: bool

Whether to allow column pinning at the table level (TanStack enableColumnPinning with enablePinning fallback).

§enable_row_pinning: bool

Whether to allow row pinning at the table level (TanStack enableRowPinning).

§enable_column_resizing: bool

Whether to allow column resizing at the table level (TanStack enableColumnResizing).

§enable_grouping: bool

Enables/disables grouping for the table (TanStack enableGrouping).

§enable_sorting: bool

Enables/disables sorting for the table (TanStack enableSorting).

§enable_multi_sort: bool

Enables/disables multi-sort for the table (TanStack enableMultiSort).

§max_multi_sort_col_count: Option<usize>

Maximum number of columns that can be multi-sorted (TanStack maxMultiSortColCount).

§enable_sorting_removal: bool

Enables/disables the ability to remove sorting (TanStack enableSortingRemoval).

§enable_multi_remove: bool

Enables/disables the ability to remove multi-sorts (TanStack enableMultiRemove).

§sort_desc_first: Option<bool>

When set, all sort toggles default to descending as their first toggle state (TanStack sortDescFirst).

§enable_row_selection: bool

Enables/disables row selection for the table (TanStack enableRowSelection).

§enable_multi_row_selection: bool

Enables/disables multi-row selection for the table (TanStack enableMultiRowSelection).

§enable_sub_row_selection: bool

Enables/disables sub-row selection propagation for the table (TanStack enableSubRowSelection).

§manual_grouping: bool

If enabled, grouping is assumed to be done externally (e.g. server-side).

When true, grouped_row_model() returns pre_grouped_row_model().

§grouped_column_mode: GroupedColumnMode

Determines how grouped columns are ordered in the leaf column list (TanStack groupedColumnMode).

§column_resize_mode: ColumnResizeMode

Determines when column_sizing updates during a resize interaction (TanStack columnResizeMode).

§column_resize_direction: ColumnResizeDirection

Column resize direction for RTL layouts (TanStack columnResizeDirection).

Trait Implementations§

Source§

impl Clone for TableOptions

Source§

fn clone(&self) -> TableOptions

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TableOptions

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Default for TableOptions

Source§

fn default() -> TableOptions

Returns the “default value” for a type. Read more
Source§

impl PartialEq for TableOptions

Source§

fn eq(&self, other: &TableOptions) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for TableOptions

Source§

impl Eq for TableOptions

Source§

impl StructuralPartialEq for TableOptions

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> UiElementA11yExt for T

Source§

fn a11y(self, decoration: SemanticsDecoration) -> UiElementWithA11y<Self>

Source§

fn a11y_role(self, role: SemanticsRole) -> UiElementWithA11y<Self>

Source§

fn a11y_label(self, label: impl Into<Arc<str>>) -> UiElementWithA11y<Self>

Source§

fn a11y_value(self, value: impl Into<Arc<str>>) -> UiElementWithA11y<Self>

Source§

fn a11y_disabled(self, disabled: bool) -> UiElementWithA11y<Self>

Source§

fn a11y_selected(self, selected: bool) -> UiElementWithA11y<Self>

Source§

fn a11y_expanded(self, expanded: bool) -> UiElementWithA11y<Self>

Source§

fn a11y_checked(self, checked: Option<bool>) -> UiElementWithA11y<Self>

Source§

impl<T> UiElementKeyContextExt for T

Source§

fn key_context( self, key_context: impl Into<Arc<str>>, ) -> UiElementWithKeyContext<Self>

Source§

impl<T> UiElementTestIdExt for T

Source§

fn test_id(self, id: impl Into<Arc<str>>) -> UiElementWithTestId<Self>

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more