pub struct DataTableTableState {Show 61 fields
pub columns: StoredValue<Vec<DataTableColumnDef>>,
pub column_groups: StoredValue<Option<Vec<DataTableColumnGroupDef>>>,
pub source_kind: DataTableSourceKind,
pub client_items: RwSignal<Vec<DataTableRowModel>>,
pub processed: RwSignal<Vec<DataTableRowModel>>,
pub processed_dataset: RwSignal<Dataset>,
pub chart_x_field: RwSignal<Option<String>>,
pub chart_y_fields: RwSignal<Vec<String>>,
pub total_rows: Memo<usize>,
pub page_count: Memo<usize>,
pub quick_search: RwSignal<String>,
pub filter: RwSignal<DataTableFilter>,
pub sort: RwSignal<DataTableSort>,
pub page: RwSignal<usize>,
pub page_size: RwSignal<usize>,
pub server_offset: RwSignal<u32>,
pub server_total: RwSignal<Option<u64>>,
pub server_loading: RwSignal<bool>,
pub paging: PagingMode,
pub selected: RwSignal<HashSet<String>>,
pub selection_anchor: RwSignal<Option<String>>,
pub cell_selection: RwSignal<CellSelection>,
pub cell_dragging: RwSignal<bool>,
pub column_visibility: RwSignal<HashMap<String, bool>>,
pub column_widths: RwSignal<HashMap<String, f64>>,
pub column_order: RwSignal<Vec<String>>,
pub pinned_columns: RwSignal<PinnedColumnsState>,
pub pinned_rows: RwSignal<PinnedRowsState>,
pub row_order: RwSignal<Vec<String>>,
pub expanded_rows: RwSignal<HashSet<String>>,
pub expanded_tree_nodes: RwSignal<HashSet<String>>,
pub expanded_groups: RwSignal<HashSet<String>>,
pub get_tree_path: StoredValue<Option<GetTreePath>>,
pub row_grouping: RwSignal<DataTableRowGrouping>,
pub aggregation: RwSignal<AggregationModel>,
pub aggregation_position: StoredValue<AggregationPosition>,
pub pivot: RwSignal<DataTablePivotModel>,
pub list_view: StoredValue<Option<ListViewConfig>>,
pub pivot_columns: RwSignal<Vec<DataTableColumnDef>>,
pub footer_row: RwSignal<Option<DataTableRowModel>>,
pub get_row_id: StoredValue<Option<GetRowId>>,
pub selection_mode: Signal<Option<DataTableSelectionMode>>,
pub features: DataTableFeatures,
pub resizable_columns: bool,
pub header_height: Option<f64>,
pub sortable: bool,
pub events: StoredValue<Option<DataTableEvents>>,
pub column_layout: Signal<ColumnLayout>,
pub render_key: RwSignal<u32>,
pub edit_mode: EditMode,
pub edit_session: EditSessionStore,
pub edit_error_dialog: RwSignal<Option<String>>,
pub edit_history: RwSignal<EditHistory>,
pub scroll_top: RwSignal<f64>,
pub scroll_left: RwSignal<f64>,
pub client_loading: RwSignal<bool>,
pub focus_cell: RwSignal<Option<CellCoord>>,
pub virtual_scroll_target: RwSignal<Option<usize>>,
pub horizontal_scroll_target: RwSignal<Option<String>>,
pub bounded_scroll: bool,
pub auto_row_height: bool,
}Expand description
Reactive table state shared by decomposed sub-components.
Fields§
§columns: StoredValue<Vec<DataTableColumnDef>>§column_groups: StoredValue<Option<Vec<DataTableColumnGroupDef>>>§source_kind: DataTableSourceKind§client_items: RwSignal<Vec<DataTableRowModel>>§processed: RwSignal<Vec<DataTableRowModel>>§processed_dataset: RwSignal<Dataset>Chart-ready processed dataset (CHARTS_INTEGRATION).
chart_x_field: RwSignal<Option<String>>Suggested chart x-axis field key.
chart_y_fields: RwSignal<Vec<String>>Suggested chart y-axis field keys.
total_rows: Memo<usize>§page_count: Memo<usize>§quick_search: RwSignal<String>§filter: RwSignal<DataTableFilter>§sort: RwSignal<DataTableSort>§page: RwSignal<usize>§page_size: RwSignal<usize>§server_offset: RwSignal<u32>§server_total: RwSignal<Option<u64>>§server_loading: RwSignal<bool>§paging: PagingMode§selected: RwSignal<HashSet<String>>§selection_anchor: RwSignal<Option<String>>§cell_selection: RwSignal<CellSelection>§cell_dragging: RwSignal<bool>§column_visibility: RwSignal<HashMap<String, bool>>§column_widths: RwSignal<HashMap<String, f64>>§column_order: RwSignal<Vec<String>>§pinned_columns: RwSignal<PinnedColumnsState>§pinned_rows: RwSignal<PinnedRowsState>§row_order: RwSignal<Vec<String>>§expanded_rows: RwSignal<HashSet<String>>§expanded_tree_nodes: RwSignal<HashSet<String>>Expanded tree branch path keys (TREE_DATA).
expanded_groups: RwSignal<HashSet<String>>Expanded row group keys (ROW_GROUPING).
get_tree_path: StoredValue<Option<GetTreePath>>§row_grouping: RwSignal<DataTableRowGrouping>§aggregation: RwSignal<AggregationModel>§aggregation_position: StoredValue<AggregationPosition>§pivot: RwSignal<DataTablePivotModel>§list_view: StoredValue<Option<ListViewConfig>>§pivot_columns: RwSignal<Vec<DataTableColumnDef>>§get_row_id: StoredValue<Option<GetRowId>>§selection_mode: Signal<Option<DataTableSelectionMode>>§features: DataTableFeatures§resizable_columns: bool§header_height: Option<f64>§sortable: bool§events: StoredValue<Option<DataTableEvents>>§column_layout: Signal<ColumnLayout>§render_key: RwSignal<u32>Bumped when processed rows change to refresh tbody rendering.
edit_mode: EditMode§edit_session: EditSessionStore§edit_error_dialog: RwSignal<Option<String>>§edit_history: RwSignal<EditHistory>§scroll_top: RwSignal<f64>Vertical scroll offset of the table scrollport (pixels).
scroll_left: RwSignal<f64>Horizontal scroll offset of the table scrollport (pixels).
client_loading: RwSignal<bool>Client-controlled loading flag for overlay state.
focus_cell: RwSignal<Option<CellCoord>>Roving keyboard focus cell for WAI-ARIA grid navigation.
virtual_scroll_target: RwSignal<Option<usize>>Target row index for programmatic scroll with virtualization.
horizontal_scroll_target: RwSignal<Option<String>>Target column field for programmatic horizontal scroll.
bounded_scroll: boolWhether the scroll body is height-bounded (sticky header, overlays).
auto_row_height: boolWhether rows use auto height (disables row virtualization).
Implementations§
Source§impl DataTableTableState
impl DataTableTableState
pub fn is_server(&self) -> bool
pub fn editing_enabled(&self) -> bool
pub fn editable_fields(&self) -> Vec<String>
pub fn find_processed_row(&self, row_id: &str) -> Option<DataTableRowModel>
pub fn start_cell_edit(&self, row_id: &str, field: &str)
pub fn start_row_edit(&self, row_id: &str)
pub fn cancel_edit(&self)
pub fn commit_edit(&self, row_id: &str)
pub fn commit_and_advance(&self, row_id: &str, field: &str)
pub fn can_undo(&self) -> bool
pub fn can_redo(&self) -> bool
pub fn undo_edit(&self)
pub fn redo_edit(&self)
pub fn show_pagination(&self) -> bool
Sourcepub fn pagination_range_bounds(&self) -> (usize, usize, usize, bool)
pub fn pagination_range_bounds(&self) -> (usize, usize, usize, bool)
Bounds for the paged footer range label (from, to, total, estimated).
pub fn visible_row_ids(&self) -> Vec<String>
pub fn visible_data_fields(&self) -> Vec<String>
pub fn visible_export_columns(&self) -> Vec<DataTableColumnDef>
pub fn clear_cell_selection(&self)
pub fn cell_selection_enabled(&self) -> bool
pub fn clipboard_enabled(&self) -> bool
pub fn excel_export_enabled(&self) -> bool
pub fn charts_integration_enabled(&self) -> bool
Sourcepub fn all_matching_rows(&self) -> Vec<DataTableRowModel>
pub fn all_matching_rows(&self) -> Vec<DataTableRowModel>
All client rows matching filter/sort without pagination.
pub fn processed_dataset(&self) -> Dataset
Sourcepub fn sync_processed_dataset(&self, result: &ProcessedPipelineResult)
pub fn sync_processed_dataset(&self, result: &ProcessedPipelineResult)
Update the live chart dataset and schema hints from a pipeline result.
Sourcepub fn sync_processed_dataset_server_page(&self)
pub fn sync_processed_dataset_server_page(&self)
Update the live chart dataset from the current server page rows.
pub fn rows_for_export(&self, scope: ExportRowScope) -> Vec<DataTableRowModel>
pub fn columns_for_export( &self, scope: ExportRowScope, ) -> Vec<DataTableColumnDef>
pub fn export_dataset(&self, scope: ExportRowScope) -> Dataset
pub fn export_csv(&self, scope: ExportRowScope) -> String
pub fn export_print_html(&self, scope: ExportRowScope) -> String
pub fn export_xlsx(&self, scope: ExportRowScope) -> Result<Vec<u8>, String>
pub fn apply_paste_text(&self, text: &str)
pub fn resolve_id(&self, row: &DataTableRowModel) -> String
pub fn notify_pagination(&self)
pub fn notify_sort(&self)
pub fn notify_filter(&self)
pub fn reset_pagination(&self)
pub fn notify_selection(&self)
pub fn notify_column_resize(&self, field: &str, width: f64)
pub fn notify_column_order_change(&self)
pub fn notify_column_visibility_change(&self)
pub fn notify_pinned_columns_change(&self)
pub fn notify_row_order_change(&self)
pub fn toggle_detail_row(&self, row_id: &str)
pub fn toggle_tree_node(&self, path_key: &str)
pub fn toggle_group(&self, group_key: &str)
pub fn tree_data_enabled(&self) -> bool
pub fn row_grouping_enabled(&self) -> bool
pub fn aggregation_enabled(&self) -> bool
pub fn pivot_enabled(&self) -> bool
pub fn list_view_enabled(&self) -> bool
pub fn reorder_row(&self, source_id: &str, target_id: &str, before: bool)
pub fn set_column_visible(&self, field: &str, visible: bool)
pub fn bump_render(&self)
pub fn pin_column(&self, field: &str, side: PinSide)
pub fn unpin_column(&self, field: &str)
pub fn reorder_column( &self, source_field: &str, target_field: &str, before: bool, )
pub fn recompute_client_processed(&self)
pub fn apply_initial_state(&self, state: &DataTableInitialState)
pub fn capture_state(&self) -> DataTableState
pub fn apply_state(&self, state: &DataTableState)
pub fn current_pagination(&self) -> PaginationState
pub fn set_sort(&self, sort: DataTableSort)
pub fn apply_header_sort_click(&self, field: &str, multi: bool, additive: bool)
pub fn sort_column(&self, field: &str, direction: SortDirection)
pub fn set_filter(&self, filter: DataTableFilter)
pub fn set_pivot(&self, model: DataTablePivotModel)
pub fn set_quick_search(&self, text: String)
pub fn set_pagination(&self, pagination: PaginationState)
pub fn set_selection(&self, selection: HashSet<String>)
pub fn virtualization_enabled(&self) -> bool
pub fn uses_auto_row_height(&self) -> bool
pub fn has_row_span_merge(&self) -> bool
pub fn has_active_filters(&self) -> bool
pub fn source_row_count(&self) -> usize
pub fn overlay_state(&self) -> OverlayState
pub fn row_height_px(&self) -> f64
pub fn set_focus_cell(&self, coord: Option<CellCoord>)
pub fn scroll_to_row_id(&self, row_id: &str)
pub fn scroll_to_column_field(&self, field: &str)
pub fn toggle_row_selection(&self, row_id: &str, multiselect: bool)
Trait Implementations§
Source§impl Clone for DataTableTableState
impl Clone for DataTableTableState
Source§fn clone(&self) -> DataTableTableState
fn clone(&self) -> DataTableTableState
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for DataTableTableState
Auto Trait Implementations§
impl Freeze for DataTableTableState
impl RefUnwindSafe for DataTableTableState
impl Send for DataTableTableState
impl Sync for DataTableTableState
impl Unpin for DataTableTableState
impl UnsafeUnpin for DataTableTableState
impl UnwindSafe for DataTableTableState
Blanket Implementations§
Source§impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere
T: Real + Zero + Arithmetics + Clone,
Swp: WhitePoint<T>,
Dwp: WhitePoint<T>,
D: AdaptFrom<S, Swp, Dwp, T>,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere
T: Real + Zero + Arithmetics + Clone,
Swp: WhitePoint<T>,
Dwp: WhitePoint<T>,
D: AdaptFrom<S, Swp, Dwp, T>,
Source§fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<T>,
fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<T>,
Source§fn adapt_into(self) -> D
fn adapt_into(self) -> D
Source§impl<T, C> ArraysFrom<C> for Twhere
C: IntoArrays<T>,
impl<T, C> ArraysFrom<C> for Twhere
C: IntoArrays<T>,
Source§fn arrays_from(colors: C) -> T
fn arrays_from(colors: C) -> T
Source§impl<T, C> ArraysInto<C> for Twhere
C: FromArrays<T>,
impl<T, C> ArraysInto<C> for Twhere
C: FromArrays<T>,
Source§fn arrays_into(self) -> C
fn arrays_into(self) -> C
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
Source§impl<WpParam, T, U> Cam16IntoUnclamped<WpParam, T> for Uwhere
T: FromCam16Unclamped<WpParam, U>,
impl<WpParam, T, U> Cam16IntoUnclamped<WpParam, T> for Uwhere
T: FromCam16Unclamped<WpParam, U>,
Source§type Scalar = <T as FromCam16Unclamped<WpParam, U>>::Scalar
type Scalar = <T as FromCam16Unclamped<WpParam, U>>::Scalar
parameters when converting.Source§fn cam16_into_unclamped(
self,
parameters: BakedParameters<WpParam, <U as Cam16IntoUnclamped<WpParam, T>>::Scalar>,
) -> T
fn cam16_into_unclamped( self, parameters: BakedParameters<WpParam, <U as Cam16IntoUnclamped<WpParam, T>>::Scalar>, ) -> T
self into C, using the provided parameters.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, C> ComponentsFrom<C> for Twhere
C: IntoComponents<T>,
impl<T, C> ComponentsFrom<C> for Twhere
C: IntoComponents<T>,
Source§fn components_from(colors: C) -> T
fn components_from(colors: C) -> T
Source§impl<T> FromAngle<T> for T
impl<T> FromAngle<T> for T
Source§fn from_angle(angle: T) -> T
fn from_angle(angle: T) -> T
angle.Source§impl<T, U> FromStimulus<U> for Twhere
U: IntoStimulus<T>,
impl<T, U> FromStimulus<U> for Twhere
U: IntoStimulus<T>,
Source§fn from_stimulus(other: U) -> T
fn from_stimulus(other: U) -> T
other into Self, while performing the appropriate scaling,
rounding and clamping.Source§impl<T, U> IntoAngle<U> for Twhere
U: FromAngle<T>,
impl<T, U> IntoAngle<U> for Twhere
U: FromAngle<T>,
Source§fn into_angle(self) -> U
fn into_angle(self) -> U
T.Source§impl<WpParam, T, U> IntoCam16Unclamped<WpParam, T> for Uwhere
T: Cam16FromUnclamped<WpParam, U>,
impl<WpParam, T, U> IntoCam16Unclamped<WpParam, T> for Uwhere
T: Cam16FromUnclamped<WpParam, U>,
Source§type Scalar = <T as Cam16FromUnclamped<WpParam, U>>::Scalar
type Scalar = <T as Cam16FromUnclamped<WpParam, U>>::Scalar
parameters when converting.Source§fn into_cam16_unclamped(
self,
parameters: BakedParameters<WpParam, <U as IntoCam16Unclamped<WpParam, T>>::Scalar>,
) -> T
fn into_cam16_unclamped( self, parameters: BakedParameters<WpParam, <U as IntoCam16Unclamped<WpParam, T>>::Scalar>, ) -> T
self into C, using the provided parameters.Source§impl<T, U> IntoColor<U> for Twhere
U: FromColor<T>,
impl<T, U> IntoColor<U> for Twhere
U: FromColor<T>,
Source§fn into_color(self) -> U
fn into_color(self) -> U
Source§impl<T, U> IntoColorUnclamped<U> for Twhere
U: FromColorUnclamped<T>,
impl<T, U> IntoColorUnclamped<U> for Twhere
U: FromColorUnclamped<T>,
Source§fn into_color_unclamped(self) -> U
fn into_color_unclamped(self) -> U
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<El, T, Marker> IntoElementMaybeSignal<T, Marker> for Elwhere
El: IntoElementMaybeSignalType<T, Marker>,
impl<El, T, Marker> IntoElementMaybeSignal<T, Marker> for Elwhere
El: IntoElementMaybeSignalType<T, Marker>,
fn into_element_maybe_signal(self) -> ElementMaybeSignal<T>
Source§impl<T, Js> IntoElementMaybeSignalType<T, Element> for Js
impl<T, Js> IntoElementMaybeSignalType<T, Element> for Js
fn into_element_maybe_signal_type(self) -> ElementMaybeSignalType<T>
Source§impl<El, T, Marker> IntoElementsMaybeSignal<T, Marker> for Elwhere
El: IntoElementsMaybeSignalType<T, Marker>,
impl<El, T, Marker> IntoElementsMaybeSignal<T, Marker> for Elwhere
El: IntoElementsMaybeSignalType<T, Marker>,
fn into_elements_maybe_signal(self) -> ElementsMaybeSignal<T>
Source§impl<T, Js> IntoElementsMaybeSignalType<T, Element> for Js
impl<T, Js> IntoElementsMaybeSignalType<T, Element> for Js
fn into_elements_maybe_signal_type(self) -> ElementsMaybeSignalType<T>
Source§impl<T> IntoStimulus<T> for T
impl<T> IntoStimulus<T> for T
Source§fn into_stimulus(self) -> T
fn into_stimulus(self) -> T
self into T, while performing the appropriate scaling,
rounding and clamping.Source§impl<T> SerializableKey for T
impl<T> SerializableKey for T
Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Source§impl<T, C> TryComponentsInto<C> for Twhere
C: TryFromComponents<T>,
impl<T, C> TryComponentsInto<C> for Twhere
C: TryFromComponents<T>,
Source§type Error = <C as TryFromComponents<T>>::Error
type Error = <C as TryFromComponents<T>>::Error
try_into_colors fails to cast.Source§fn try_components_into(self) -> Result<C, <T as TryComponentsInto<C>>::Error>
fn try_components_into(self) -> Result<C, <T as TryComponentsInto<C>>::Error>
Source§impl<T, U> TryIntoColor<U> for Twhere
U: TryFromColor<T>,
impl<T, U> TryIntoColor<U> for Twhere
U: TryFromColor<T>,
Source§fn try_into_color(self) -> Result<U, OutOfBounds<U>>
fn try_into_color(self) -> Result<U, OutOfBounds<U>>
OutOfBounds error is returned which contains
the unclamped color. Read more