Calculated Columns
Columns whose values are derived from other fields through a function or a safe expression. Dependencies are declared and the values recompute automatically on edit. Calculated columns are read-only, sortable and filterable.
Planned. This page shows the specification from issue #206. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
An editable grid with qty, price and discount, plus a calculated Total column.
Expected behavior
Editing a dependency updates Total immediately, and only the affected rows are recomputed. Invalid expressions show an inline error instead of crashing the grid.
Planned API surface
valueGetterexpressiondependsOncalculatedColumnRecomputedsafeExpressionSandboxAcceptance criteria
- Only rows that have changed dependencies are recomputed (pending)
- Expressions cannot access globals, the network or the DOM (pending)
- Calculated values take part in sort, filter and export (pending)