Skip to main content

Table

Struct Table 

Source
pub struct Table<'a, TData> { /* private fields */ }

Implementations§

Source§

impl<'a, TData> Table<'a, TData>

Source

pub fn builder(data: &'a [TData]) -> TableBuilder<'a, TData>

Source

pub fn data(&self) -> &'a [TData]

Source

pub fn columns(&self) -> &[ColumnDef<TData>]

Source

pub fn render_fallback_value(&self) -> &TanStackValue

TanStack-aligned: options.renderFallbackValue used by cell.renderValue().

Source

pub fn column_tree(&self) -> &[ColumnDef<TData>]

Source

pub fn column(&self, id: &str) -> Option<&ColumnDef<TData>>

Source

pub fn cell_value( &self, row_key: RowKey, column_id: &str, ) -> Option<TanStackValue>

TanStack-aligned: cell.getValue() equivalent for the current row model.

This returns a [TanStackValue] representation and currently uses the column’s sort_value accessor when available.

Source

pub fn cell_render_value( &self, row_key: RowKey, column_id: &str, ) -> Option<TanStackValue>

TanStack-aligned: cell.renderValue() equivalent: getValue() ?? renderFallbackValue.

Source

pub fn row_unique_values( &self, row_key: RowKey, column_id: &str, ) -> Option<Vec<TanStackValue>>

TanStack-aligned: row.getUniqueValues(columnId) for a leaf row in the core row model.

Notes:

  • If column.unique_values_fn is configured, it is used (matches TanStack columnDef.getUniqueValues).
  • Otherwise, returns a single-element array containing getValue(columnId).
  • If the column has no value source in the Rust engine, this returns None.
Source

pub fn row(&self, row_key: RowKey, search_all: bool) -> Option<&Row<'a, TData>>

TanStack-aligned: resolve a row by id, optionally searching outside the current paginated row model (e.g. pinned rows).

Source

pub fn row_by_id( &self, row_id: &str, search_all: bool, ) -> Option<&Row<'a, TData>>

TanStack-aligned: resolve a row by string id, optionally searching outside the current paginated row model.

Source

pub fn row_key_for_id(&self, row_id: &str, search_all: bool) -> Option<RowKey>

Source

pub fn row_id_for_key(&self, row_key: RowKey) -> Option<RowId>

Source

pub fn cell_context( &self, row_key: RowKey, column_id: &str, ) -> Option<CellContextSnapshot>

Rust-native equivalent of TanStack cell.getContext().

Source

pub fn state(&self) -> &TableState

Source

pub fn options(&self) -> TableOptions

Source

pub fn column_visibility(&self) -> &HashMap<Arc<str>, bool>

Source

pub fn is_column_visible(&self, column_id: &str) -> Option<bool>

Source

pub fn column_can_hide(&self, column_id: &str) -> Option<bool>

Source

pub fn all_flat_columns(&self) -> Vec<&ColumnDef<TData>>

TanStack-aligned: table.getAllFlatColumns().

This returns the full column tree in a pre-order DFS flattening (column, then its descendants). It does not apply columnOrder reordering, matching upstream semantics.

Source

pub fn visible_flat_columns(&self) -> Vec<&ColumnDef<TData>>

TanStack-aligned: table.getVisibleFlatColumns().

Visibility rules match TanStack:

  • leaf columns consult state.column_visibility (default visible),
  • group columns are visible if any descendant is visible.
Source

pub fn hideable_columns(&self) -> Vec<&ColumnDef<TData>>

Source

pub fn is_all_columns_visible(&self) -> bool

Source

pub fn is_some_columns_visible(&self) -> bool

Source

pub fn toggled_column_visibility( &self, column_id: &str, visible: Option<bool>, ) -> Option<HashMap<Arc<str>, bool>>

Source

pub fn toggled_all_columns_visible( &self, visible: Option<bool>, ) -> HashMap<Arc<str>, bool>

Source

pub fn is_some_rows_expanded(&self) -> bool

Source

pub fn toggled_all_rows_expanded(&self, value: Option<bool>) -> ExpandingState

Source

pub fn toggled_row_expanded( &self, row_key: RowKey, value: Option<bool>, ) -> ExpandingState

Source

pub fn row_expanding_updater( &self, row_key: RowKey, value: Option<bool>, ) -> Updater<ExpandingState>

Source

pub fn row_expanding_updater_by_id( &self, row_id: &str, search_all: bool, value: Option<bool>, ) -> Option<Updater<ExpandingState>>

Source

pub fn toggled_row_expanded_by_id( &self, row_id: &str, search_all: bool, value: Option<bool>, ) -> Option<ExpandingState>

Source

pub fn should_auto_reset_expanded(&self) -> bool

TanStack-aligned: autoResetAll ?? autoResetExpanded ?? !manualExpanding.

Source

pub fn reset_expanded(&self, default_state: bool) -> ExpandingState

TanStack-aligned: table.resetExpanded(defaultState?).

Source

pub fn should_auto_reset_page_index(&self) -> bool

TanStack-aligned: autoResetAll ?? autoResetPageIndex ?? !manualPagination.

Source

pub fn reset_page_index(&self, default_state: bool) -> PaginationState

TanStack-aligned: table.resetPageIndex(defaultState?).

Source

pub fn reset_page_size(&self, default_state: bool) -> PaginationState

TanStack-aligned: table.resetPageSize(defaultState?).

Source

pub fn reset_pagination(&self, default_state: bool) -> PaginationState

TanStack-aligned: table.resetPagination(defaultState?).

Source

pub fn set_page_index(&self, page_index: i32) -> PaginationState

TanStack-aligned: table.setPageIndex(updater), with clamping based on options.pageCount.

Source

pub fn pagination_updater_set_page_index( &self, page_index: i32, ) -> Updater<PaginationState>

Source

pub fn set_page_size(&self, page_size: i32) -> PaginationState

TanStack-aligned: table.setPageSize(updater).

Source

pub fn pagination_updater_set_page_size( &self, page_size: i32, ) -> Updater<PaginationState>

Source

pub fn previous_page(&self) -> PaginationState

TanStack-aligned: table.previousPage().

Source

pub fn next_page(&self) -> PaginationState

TanStack-aligned: table.nextPage().

Source

pub fn first_page(&self) -> PaginationState

TanStack-aligned: table.firstPage().

Source

pub fn last_page(&self) -> PaginationState

TanStack-aligned: table.lastPage().

Source

pub fn row_count(&self) -> usize

TanStack-aligned: table.getRowCount().

Source

pub fn page_count(&self) -> i32

TanStack-aligned: table.getPageCount().

Source

pub fn can_previous_page(&self) -> bool

TanStack-aligned: table.getCanPreviousPage().

Source

pub fn can_next_page(&self) -> bool

TanStack-aligned: table.getCanNextPage().

Source

pub fn page_options(&self) -> Vec<usize>

TanStack-aligned: table.getPageOptions().

Source

pub fn grouping(&self) -> &Vec<Arc<str>>

Source

pub fn column_can_group(&self, column_id: &str) -> Option<bool>

Source

pub fn is_column_grouped(&self, column_id: &str) -> Option<bool>

Source

pub fn column_grouped_index(&self, column_id: &str) -> Option<usize>

Source

pub fn toggled_column_grouping( &self, column_id: &str, grouped: Option<bool>, ) -> Option<Vec<Arc<str>>>

Source

pub fn grouping_updater( &self, column_id: &str, grouped: Option<bool>, ) -> Option<Updater<Vec<Arc<str>>>>

TanStack-aligned: compute the Updater that a controlled onGroupingChange hook would receive for a “toggle this column” interaction.

Source

pub fn grouping_handler_updater( &self, column_id: &str, ) -> Option<Updater<Vec<Arc<str>>>>

TanStack-aligned: compute the Updater that a controlled onGroupingChange hook would receive for a getToggleGroupingHandler() interaction.

Source

pub fn pre_grouped_row_model(&self) -> &RowModel<'a, TData>

Source

pub fn grouped_row_model(&self) -> &GroupedRowModel

Source

pub fn grouped_u64_aggregations( &self, ) -> &HashMap<RowKey, Arc<[(Arc<str>, u64)]>>

Source

pub fn grouped_aggregations_any( &self, ) -> &HashMap<RowKey, Arc<[(Arc<str>, TanStackValue)]>>

Source

pub fn is_all_rows_expanded(&self) -> bool

Source

pub fn can_some_rows_expand(&self) -> bool

Source

pub fn expanded_depth(&self) -> u16

Source

pub fn row_can_expand(&self, row_key: RowKey) -> bool

Source

pub fn row_is_all_parents_expanded(&self, row_key: RowKey) -> bool

Source

pub fn is_some_rows_pinned(&self, position: Option<RowPinPosition>) -> bool

Source

pub fn reset_row_pinning(&self, default_state: bool) -> RowPinningState

TanStack-aligned: table.resetRowPinning(defaultState?).

Source

pub fn is_some_columns_pinned( &self, position: Option<ColumnPinPosition>, ) -> bool

Source

pub fn reset_column_pinning(&self, default_state: bool) -> ColumnPinningState

TanStack-aligned: table.resetColumnPinning(defaultState?).

Source

pub fn reset_row_selection(&self, default_state: bool) -> HashSet<RowKey>

TanStack-aligned: table.resetRowSelection(defaultState?).

Source

pub fn reset_sorting(&self, default_state: bool) -> Vec<SortSpec>

TanStack-aligned: table.resetSorting(defaultState?).

Source

pub fn tanstack_sorted_flat_row_order_with_cache( &self, items_revision: u64, cache: &mut TanStackSortedFlatRowOrderCache, ) -> (Arc<[FlatRowOrderEntry]>, bool)

Returns a stable, memoized ordering of the root row list after filtering + sorting.

This helper exists to support “rebuild each frame” callers: they can rebuild a fresh Table while keeping a persistent memo cache (TanStack-style) outside the ephemeral instance.

Notes:

  • The returned ordering is based on the flat core row model (no grouping, no sub-rows).
  • Cache invalidation is driven by items_revision plus a dependency snapshot derived from state, options, and the configured column/filter/sort surfaces.
Source

pub fn tanstack_ungrouped_row_model_order_with_cache( &self, items_revision: u64, cache: &mut TanStackUngroupedRowModelOrderCache, ) -> Option<(Arc<TanStackRowModelOrderSnapshot>, bool)>

Returns the final ungrouped row-model ordering (rows + flatRows) with a persistent external memo cache.

This helper exists to support “rebuild each frame” callers: they can rebuild a fresh Table every frame while keeping a persistent memo cache (TanStack-style) outside the ephemeral instance.

Returns None when grouping is active, since grouped row models contain non-core rows (group headers) whose stable-key strategy is a separate concern.

Source

pub fn column_can_sort(&self, column_id: &str) -> Option<bool>

TanStack-aligned: column.getCanSort().

Source

pub fn column_can_multi_sort(&self, column_id: &str) -> Option<bool>

TanStack-aligned: column.getCanMultiSort().

Source

pub fn column_auto_sort_dir_desc_tanstack( &self, column_id: &str, ) -> Option<bool>

TanStack-aligned: column.getAutoSortDir().

Returns true for desc and false for asc.

Source

pub fn column_first_sort_dir_desc_tanstack( &self, column_id: &str, ) -> Option<bool>

TanStack-aligned: column.getFirstSortDir().

Returns true for desc and false for asc. Returns None when we cannot infer the direction (because the column has neither an explicit sortDescFirst override nor a stable sort_value_by surface for auto inference).

Source

pub fn column_next_sorting_order_desc_tanstack( &self, column_id: &str, multi: bool, ) -> Option<Option<bool>>

TanStack-aligned: column.getNextSortingOrder(multi?).

Returns:

  • Some(Some(true)) => 'desc'
  • Some(Some(false)) => 'asc'
  • Some(None) => false (remove)
  • None => unknown column id
Source

pub fn cleared_column_sorting(&self, column_id: &str) -> Option<Vec<SortSpec>>

TanStack-aligned: column.clearSorting().

Source

pub fn column_is_sorted(&self, column_id: &str) -> Option<bool>

TanStack-aligned: column.getIsSorted() (boolean form).

Source

pub fn column_sort_index(&self, column_id: &str) -> Option<i32>

TanStack-aligned: column.getSortIndex().

Returns -1 when the column is not currently sorted. Returns None when the column id does not exist.

Source

pub fn sorting_updater_tanstack( &self, column_id: &str, multi: bool, auto_sort_dir_desc: bool, ) -> Option<Updater<Vec<SortSpec>>>

TanStack-aligned sorting state transition for column.toggleSorting(...).

This models the “direct toggle” policy (see sorting.rs::toggle_sorting_tanstack).

Source

pub fn sorting_handler_updater_tanstack( &self, column_id: &str, event_multi: bool, auto_sort_dir_desc: bool, ) -> Option<Updater<Vec<SortSpec>>>

TanStack-aligned sorting state transition for column.getToggleSortingHandler().

This models the “handler” policy (including getCanSort gating), aligning with sorting.rs::toggle_sorting_handler_tanstack.

Source

pub fn toggled_column_sorting_tanstack( &self, column_id: &str, multi: bool, auto_sort_dir_desc: bool, ) -> Option<Vec<SortSpec>>

Convenience: apply Self::sorting_updater_tanstack to the current sorting state.

Source

pub fn toggled_column_sorting_handler_tanstack( &self, column_id: &str, event_multi: bool, auto_sort_dir_desc: bool, ) -> Option<Vec<SortSpec>>

Convenience: apply Self::sorting_handler_updater_tanstack to the current sorting state.

Source

pub fn reset_column_filters(&self, default_state: bool) -> Vec<ColumnFilter>

TanStack-aligned: table.resetColumnFilters(defaultState?).

Source

pub fn reset_global_filter(&self, default_state: bool) -> Option<Value>

TanStack-aligned: table.resetGlobalFilter(defaultState?).

Source

pub fn column_can_filter(&self, column_id: &str) -> Option<bool>

Source

pub fn column_filter_value(&self, column_id: &str) -> Option<&Value>

Source

pub fn column_is_filtered(&self, column_id: &str) -> Option<bool>

Source

pub fn column_filter_index(&self, column_id: &str) -> Option<i32>

TanStack-aligned: column.getFilterIndex().

Returns -1 when the column is not currently filtered. Returns None when the column id does not exist.

Source

pub fn column_filters_updater_set_value( &self, column_id: &str, value: Value, ) -> Option<Updater<Vec<ColumnFilter>>>

TanStack-aligned: column.setFilterValue(value) as a state updater.

Source

pub fn global_filter_updater_set_value( &self, value: Option<Value>, ) -> Updater<Option<Value>>

TanStack-aligned: table.setGlobalFilter(value) as a state updater.

Source

pub fn column_can_global_filter(&self, column_id: &str) -> Option<bool>

TanStack-aligned: column.getCanGlobalFilter().

Source

pub fn reset_grouping(&self, default_state: bool) -> Vec<Arc<str>>

TanStack-aligned: table.resetGrouping(defaultState?).

Source

pub fn reset_column_visibility( &self, default_state: bool, ) -> HashMap<Arc<str>, bool>

TanStack-aligned: table.resetColumnVisibility(defaultState?).

Source

pub fn reset_column_order(&self, default_state: bool) -> Vec<Arc<str>>

TanStack-aligned: table.resetColumnOrder(defaultState?).

Source

pub fn row_is_pinned(&self, row_key: RowKey) -> Option<RowPinPosition>

Source

pub fn row_pinned_index(&self, row_key: RowKey) -> Option<i32>

TanStack-aligned: row.getPinnedIndex().

Returns -1 when the row is not currently visible in its pinned region. Returns None when the row key does not exist.

Source

pub fn row_can_pin(&self, row_key: RowKey) -> Option<bool>

Source

pub fn row_pinning_updater( &self, row_key: RowKey, position: Option<RowPinPosition>, include_leaf_rows: bool, include_parent_rows: bool, ) -> Updater<RowPinningState>

Source

pub fn row_pinning_updater_by_id( &self, row_id: &str, search_all: bool, position: Option<RowPinPosition>, include_leaf_rows: bool, include_parent_rows: bool, ) -> Option<Updater<RowPinningState>>

Source

pub fn top_row_keys(&self) -> Vec<RowKey>

Source

pub fn top_row_ids(&self) -> Vec<RowId>

Source

pub fn bottom_row_keys(&self) -> Vec<RowKey>

Source

pub fn bottom_row_ids(&self) -> Vec<RowId>

Source

pub fn center_row_keys(&self) -> Vec<RowKey>

Source

pub fn center_row_ids(&self) -> Vec<RowId>

Source

pub fn ordered_columns(&self) -> Vec<&ColumnDef<TData>>

Source

pub fn column_order(&self) -> &Vec<Arc<str>>

Source

pub fn column_pinning(&self) -> &ColumnPinningState

Source

pub fn column_can_order(&self, column_id: &str) -> Option<bool>

Source

pub fn column_can_pin(&self, column_id: &str) -> Option<bool>

Source

pub fn column_pin_position(&self, column_id: &str) -> Option<ColumnPinPosition>

Source

pub fn column_pinned_index(&self, column_id: &str) -> Option<i32>

TanStack-aligned: column.getPinnedIndex().

Returns 0 for unpinned columns (matching TanStack). Returns -1 when the column is pinned via a group column but the group id is not present in the leaf-pinning state arrays.

Source

pub fn column_pinning_updater( &self, column_id: &str, position: Option<ColumnPinPosition>, ) -> Option<Updater<ColumnPinningState>>

Source

pub fn toggled_column_order_move( &self, column_id: &str, to_index: usize, ) -> Option<Vec<Arc<str>>>

Source

pub fn toggled_column_pinning( &self, column_id: &str, position: Option<ColumnPinPosition>, ) -> Option<ColumnPinningState>

Source

pub fn visible_columns(&self) -> Vec<&ColumnDef<TData>>

Source

pub fn header_groups(&self) -> Vec<HeaderGroupSnapshot>

Source

pub fn left_header_groups(&self) -> Vec<HeaderGroupSnapshot>

Source

pub fn center_header_groups(&self) -> Vec<HeaderGroupSnapshot>

Source

pub fn right_header_groups(&self) -> Vec<HeaderGroupSnapshot>

Source

pub fn footer_groups(&self) -> Vec<HeaderGroupSnapshot>

Source

pub fn flat_headers(&self) -> Vec<HeaderSnapshot>

Source

pub fn left_flat_headers(&self) -> Vec<HeaderSnapshot>

Source

pub fn center_flat_headers(&self) -> Vec<HeaderSnapshot>

Source

pub fn right_flat_headers(&self) -> Vec<HeaderSnapshot>

Source

pub fn left_leaf_headers(&self) -> Vec<HeaderSnapshot>

Source

pub fn center_leaf_headers(&self) -> Vec<HeaderSnapshot>

Source

pub fn right_leaf_headers(&self) -> Vec<HeaderSnapshot>

Source

pub fn leaf_headers(&self) -> Vec<HeaderSnapshot>

TanStack-style getLeafHeaders (postorder traversal from top headers).

Source

pub fn row_cells(&self, row_key: RowKey) -> Option<RowCellsSnapshot>

Source

pub fn core_model_snapshot(&self) -> CoreModelSnapshot

Source

pub fn pinned_visible_columns( &self, ) -> (Vec<&ColumnDef<TData>>, Vec<&ColumnDef<TData>>, Vec<&ColumnDef<TData>>)

Source

pub fn pinned_leaf_columns( &self, ) -> (Vec<&ColumnDef<TData>>, Vec<&ColumnDef<TData>>, Vec<&ColumnDef<TData>>)

TanStack-aligned: table.getLeft/Center/RightLeafColumns().

Note: this returns leaf columns split by pinning state and does not apply column visibility filtering. Use Self::pinned_visible_columns for visible-only splits.

Source

pub fn left_leaf_columns(&self) -> Vec<&ColumnDef<TData>>

Source

pub fn center_leaf_columns(&self) -> Vec<&ColumnDef<TData>>

Source

pub fn right_leaf_columns(&self) -> Vec<&ColumnDef<TData>>

Source

pub fn column_size(&self, id: &str) -> Option<f32>

Source

pub fn column_sizing(&self) -> &HashMap<Arc<str>, f32>

Source

pub fn column_sizing_info(&self) -> &ColumnSizingInfoState

Source

pub fn column_can_resize(&self, id: &str) -> Option<bool>

Source

pub fn is_column_resizing(&self, id: &str) -> Option<bool>

Source

pub fn reset_column_size(&self, id: &str) -> Option<HashMap<Arc<str>, f32>>

TanStack-aligned: remove an override size entry (falls back to column defaults).

Source

pub fn reset_column_sizing(&self, default_state: bool) -> HashMap<Arc<str>, f32>

TanStack-aligned: table.resetColumnSizing(defaultState?).

Source

pub fn reset_header_size_info( &self, default_state: bool, ) -> ColumnSizingInfoState

TanStack-aligned: table.resetHeaderSizeInfo(defaultState?) (columnSizingInfo reset).

Source

pub fn started_column_resize( &self, id: &str, pointer_x: f32, ) -> Option<ColumnSizingInfoState>

Source

pub fn dragged_column_resize( &self, pointer_x: f32, ) -> (HashMap<Arc<str>, f32>, ColumnSizingInfoState)

Source

pub fn ended_column_resize( &self, pointer_x: Option<f32>, ) -> (HashMap<Arc<str>, f32>, ColumnSizingInfoState)

Source

pub fn total_size(&self) -> f32

Source

pub fn pinned_total_sizes(&self) -> (f32, f32, f32)

Source

pub fn left_total_size(&self) -> f32

Source

pub fn center_total_size(&self) -> f32

Source

pub fn right_total_size(&self) -> f32

Source

pub fn column_start( &self, column_id: &str, region: ColumnSizingRegion, ) -> Option<f32>

TanStack-aligned: return the start offset (x) for a column within a sizing region.

Notes:

  • For All, this is column.getStart() over TanStack’s _getVisibleLeafColumns(table).
  • For Left/Center/Right, this corresponds to column.getStart(position) with fixture parity gating that only records values for columns that are pinned to that region (or are in the center region).
  • When the column is not present in the visible list for the given region (e.g. hidden), TanStack’s getIndex returns -1, which results in slice(0, -1) behavior. We mirror that by summing all but the last column in that region for start, and summing the entire region for after.
Source

pub fn column_after( &self, column_id: &str, region: ColumnSizingRegion, ) -> Option<f32>

TanStack-aligned: return the after offset (remaining width) for a column within a sizing region.

Source

pub fn header_size(&self, header_id: &str) -> Option<f32>

TanStack-aligned: header.getSize() for header groups (including placeholder headers).

Source

pub fn header_start(&self, header_id: &str) -> Option<f32>

TanStack-aligned: header.getStart() computed within its header group.

Source

pub fn core_row_model(&self) -> &RowModel<'a, TData>

Source

pub fn pre_filtered_row_model(&self) -> &RowModel<'a, TData>

Source

pub fn filtered_row_model(&self) -> &RowModel<'a, TData>

Source

pub fn row_filter_state_snapshot(&self) -> RowFilterStateSnapshot

Source

pub fn pre_sorted_row_model(&self) -> &RowModel<'a, TData>

Source

pub fn sorted_row_model(&self) -> &RowModel<'a, TData>

Source

pub fn pre_pagination_row_model(&self) -> &RowModel<'a, TData>

Source

pub fn pre_expanded_row_model(&self) -> &RowModel<'a, TData>

Source

pub fn expanded_row_model(&self) -> &RowModel<'a, TData>

Source

pub fn row_model(&self) -> &RowModel<'a, TData>

Source

pub fn pre_selected_row_model(&self) -> &RowModel<'a, TData>

Source

pub fn selected_row_model(&self) -> &RowModel<'a, TData>

Source

pub fn filtered_selected_row_model(&self) -> &RowModel<'a, TData>

Source

pub fn grouped_selected_row_model(&self) -> &RowModel<'a, TData>

Source

pub fn page_selected_row_model(&self) -> &RowModel<'a, TData>

Source

pub fn row_is_selected(&self, row_key: RowKey) -> bool

Source

pub fn row_is_some_selected(&self, row_key: RowKey) -> bool

Source

pub fn row_is_all_sub_rows_selected(&self, row_key: RowKey) -> bool

Source

pub fn row_selection_updater( &self, row_key: RowKey, value: Option<bool>, select_children: bool, ) -> Updater<HashSet<RowKey>>

Source

pub fn row_selection_updater_by_id( &self, row_id: &str, search_all: bool, value: Option<bool>, select_children: bool, ) -> Option<Updater<HashSet<RowKey>>>

Source

pub fn toggled_row_selected_by_id( &self, row_id: &str, search_all: bool, value: Option<bool>, select_children: bool, ) -> Option<HashSet<RowKey>>

Source

pub fn toggled_row_selected( &self, row_key: RowKey, value: Option<bool>, select_children: bool, ) -> HashSet<RowKey>

Source

pub fn is_all_rows_selected(&self) -> bool

Source

pub fn is_some_rows_selected(&self) -> bool

Source

pub fn is_all_page_rows_selected(&self) -> bool

Source

pub fn is_some_page_rows_selected(&self) -> bool

Source

pub fn filtered_row_count(&self) -> usize

Source

pub fn filtered_flat_row_count(&self) -> usize

Source

pub fn filtered_selected_row_count(&self) -> usize

Source

pub fn filtered_selected_flat_row_count(&self) -> usize

Source

pub fn row_can_select(&self, row_key: RowKey) -> bool

TanStack-aligned: row.getCanSelect().

Source

pub fn row_can_multi_select(&self, row_key: RowKey) -> bool

TanStack-aligned: row.getCanMultiSelect().

Source

pub fn row_can_select_sub_rows(&self, row_key: RowKey) -> bool

TanStack-aligned: row.getCanSelectSubRows().

Source

pub fn row_can_select_by_id( &self, row_id: &str, search_all: bool, ) -> Option<bool>

Source

pub fn row_can_multi_select_by_id( &self, row_id: &str, search_all: bool, ) -> Option<bool>

Source

pub fn row_can_select_sub_rows_by_id( &self, row_id: &str, search_all: bool, ) -> Option<bool>

Source

pub fn toggled_all_rows_selected(&self, value: Option<bool>) -> HashSet<RowKey>

Source

pub fn toggled_all_page_rows_selected( &self, value: Option<bool>, ) -> HashSet<RowKey>

Source

pub fn faceted_row_model(&self, column_id: &str) -> Option<&RowModel<'a, TData>>

Source

pub fn faceted_unique_values( &self, column_id: &str, ) -> Option<&HashMap<u64, usize>>

Source

pub fn faceted_unique_value_labels( &self, column_id: &str, ) -> Option<&HashMap<u64, &'a str>>

Source

pub fn faceted_min_max_u64(&self, column_id: &str) -> Option<(u64, u64)>

Source

pub fn global_faceted_row_model(&self) -> &RowModel<'a, TData>

TanStack-aligned: table.getGlobalFacetedRowModel().

Notes:

  • Matches upstream behavior by returning pre_filtered_row_model() when manualFiltering=true.
  • When no override is provided, this defaults to filtered_row_model() (which already respects manualFiltering).
Source

pub fn global_faceted_unique_values(&self) -> &HashMap<u64, usize>

TanStack-aligned: table.getGlobalFacetedUniqueValues().

Notes:

  • Upstream does not gate this by manualFiltering; only the row model surface is gated.
Source

pub fn global_faceted_min_max_u64(&self) -> Option<(u64, u64)>

TanStack-aligned: table.getGlobalFacetedMinMaxValues() (u64-only mapping).

Notes:

  • Upstream does not gate this by manualFiltering; only the row model surface is gated.
Source§

impl<'a, TData> Table<'a, TData>

Source

pub fn column_any(&self, column_id: &str) -> Option<&ColumnDef<TData>>

TanStack-aligned: table.getColumn(columnId).

Note: unlike Self::column, this searches the full column tree and can return group columns as well as leaf columns.

Source

pub fn column_tree_snapshot(&self) -> Vec<ColumnNodeSnapshot>

TanStack-aligned: table.getAllColumns() snapshot surface.

Source

pub fn column_node_snapshot( &self, column_id: &str, ) -> Option<ColumnNodeSnapshot>

TanStack-aligned: table.getColumn(columnId) structural snapshot.

Auto Trait Implementations§

§

impl<'a, TData> !Freeze for Table<'a, TData>

§

impl<'a, TData> !RefUnwindSafe for Table<'a, TData>

§

impl<'a, TData> !Send for Table<'a, TData>

§

impl<'a, TData> !Sync for Table<'a, TData>

§

impl<'a, TData> Unpin for Table<'a, TData>

§

impl<'a, TData> UnsafeUnpin for Table<'a, TData>

§

impl<'a, TData> !UnwindSafe for Table<'a, TData>

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> 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, 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