How black-cockpit/yew-datatable works
yew-datatable is a headless Rust table engine with a Yew integration layer. The main workflow is application data and column definitions into the table hook, through row processing, and into rendered table and pagination components. The graph preserves the documented filter/sort/group/expand/paginate stages and other feature families. Some links are based on the README or SOURCE INDEX references; unsampled implementation details are not inferred.
Main entry points: use_table.rs use_table hook · components/data_table.rs DataTable component · table/data_table.rs DataTable engine · data_table_row_model.rs Row model
Components 19
Yew integration
- use_table hook
yew-datatable/src/hooks/use_table.rs - DataTable component
yew-datatable/src/components/data_table.rs - Table header
yew-datatable/src/components/table_header.rs - Table body
yew-datatable/src/components/table_body.rs - Cell render context
yew-datatable/src/components/cell_render_context.rs - Pagination component
yew-datatable/src/components/pagination.rs
Core engine
- DataTable engine
yew-datatable-core/src/table/data_table.rs - Column definitions
yew-datatable-core/src/column/column_def.rs - Table state
yew-datatable-core/src/state/data_table_state.rs
Row pipeline
- Row model
yew-datatable-core/src/row/data_table_row_model.rs - Filtering
yew-datatable-core/src/features/filtering/filter_state.rs - Sorting
yew-datatable-core/src/features/sorting/sorting_state.rs - Grouping
yew-datatable-core/src/features/grouping/grouping_state.rs - Row expansion
yew-datatable-core/src/features/expanding/expanding_state.rs
Table features
- Pagination state
yew-datatable-core/src/features/pagination/pagination_state.rs - Row selection
yew-datatable-core/src/features/row_selection/row_selection_state.rs - Column controls
yew-datatable-core/src/features - Aggregation
yew-datatable-core/src/features/aggregation
Other components
- Yew application
Connections 21
- Yew application → use_table hook: provides data
- Yew application → Column definitions: defines columns
- use_table hook → DataTable engine: manages
- DataTable engine → Column definitions: uses definitions
yew-datatable-core/src/table/data_table.rs - DataTable engine → Table state: uses state
yew-datatable-core/src/table/data_table.rs - DataTable engine → Row model: processes rows
yew-datatable-core/src/table/data_table.rs - Row model → Filtering: filters
yew-datatable-core/src/row/data_table_row_model.rs - Filtering → Sorting: then sorts
- Sorting → Grouping: then groups
- Grouping → Row expansion: then expands
- Row expansion → Pagination state: then paginates
- use_table hook → DataTable component: supplies table
yew-datatable/src/components/data_table.rs - DataTable component → Table header: renders
yew-datatable/src/components/data_table.rs - DataTable component → Table body: renders
yew-datatable/src/components/data_table.rs - Table body → Cell render context: creates context
yew-datatable/src/components/table_body.rs - DataTable component → Pagination component: renders
yew-datatable/src/components/data_table.rs - Pagination component → use_table hook: navigates pages
yew-datatable/src/components/pagination.rs - use_table hook → Pagination state: updates page state
- use_table hook → Row selection: updates selection
- use_table hook → Column controls: updates columns
- Row model → Aggregation: supports grouped values