Skip to main content

yew_datatable_core/column/
mod.rs

1/// Context provided when rendering a table cell.
2///
3/// Contains all information needed to render a cell value,
4/// including the row data, column information, and table state.
5pub mod cell_context;
6
7/// Definition of a table column.
8///
9/// Provides all configuration needed to display and interact
10/// with a column, including accessor, sorting, filtering, and aggregation.
11pub mod column_def;
12
13/// Builder pattern for creating column definitions with a fluent API.
14///
15/// Provides a convenient way to construct `ColumnDef` instances
16/// with various configuration options.
17pub mod column_def_builder;
18
19/// Unique identifier for a table column.
20///
21/// Column IDs are used to reference columns throughout the table API
22/// for operations like sorting, filtering, visibility, and pinning.
23pub mod column_id;
24
25/// Metadata for a table column that affects its behavior and display.
26///
27/// Contains configuration such as header text, footer text, sortable/filterable
28/// flags, resize constraints, and group column settings.
29pub mod column_meta;
30
31/// Type-safe accessor for extracting values from row data.
32///
33/// Provides compile-time guarantees that columns access the correct
34/// fields from row data without string-based property access.
35pub mod data_table_accessor;
36
37/// Dynamic accessor that returns boxed trait objects for sorting and filtering.
38///
39/// Erases the concrete value type, allowing columns with different
40/// value types to be stored and processed uniformly.
41pub mod data_table_dyn_accessor;
42
43/// Trait for dynamically typed values that support comparison and display.
44///
45/// Provides a common interface for column values of different types,
46/// enabling sorting, filtering, and display operations.
47pub mod data_table_dyn_value;
48
49/// Context provided when rendering a column header.
50///
51/// Contains sort state, filter capability, resize state,
52/// pinning status, and column width information.
53pub mod header_context;
54
55/// Sort direction indicator for header context rendering.
56///
57/// Represents the visual sort direction state displayed in column
58/// headers when sorting is active.
59pub mod sort_direction;
60
61/// Re-exports for convenient access to column types.
62///
63/// Provides a centralized location for importing commonly used
64/// column-related types, traits, and structs.
65pub mod prelude;