Repository navigation
1.4.1
BREAKING CHANGES:
- Removed:
rowLeadingandrowTrailingparameters from allTablecomposable functions.- These parameters previously allowed rendering custom content before or after table rows.
- Migration: Use regular table columns defined via
ColumnSpecinstead. For leading content (e.g., checkboxes,
avatars), define a dedicated column at the start of your column list. For trailing content (e.g., action buttons),
add a column at the end. - Example:
// Before (1.4.0) Table( rowLeading = { item -> Checkbox(...) }, rowTrailing = { item -> IconButton(...) }, columns = dataColumns, // ... ) // After (1.4.1) val columns = tableColumns<Item, Field> { // Leading column for checkbox column(Field.Select, valueOf = { it }) { width(48.dp) cell { Checkbox(...) } } // Your data columns // ... // Trailing column for actions column(Field.Actions, valueOf = { it }) { width(64.dp) cell { IconButton(...) } } } Table( columns = columns, // ... )
- Removed: All internal infrastructure related to
rowLeading/rowTrailing:hasLeading,leadingColumnWidth,rowLeadingPresent,leadingOffsetparameters removed from internal
functions.RowLeadingSectioncomponent removed.
Benefits of this change:
- Simplified API with fewer special-case parameters.
- Leading/trailing content now benefits from full column capabilities: sorting, resizing, filtering, custom styling,
etc. - More consistent and flexible table architecture.
Compare: v1.4.0...v1.4.1