Default column definition
`defaultColumn` supplies shared settings such as width, sortable, resizable and formatter, which every column inherits. Per-column values override the defaults with a documented shallow-merge order. This removes repetitive configuration in wide grids.
Planned. This page shows the specification from issue #184. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
A grid with 8 columns. defaultColumn sets minWidth 100, resizable true and sortable true. One column overrides sortable to false.
Expected behavior
Changing a default updates every column that has no override. The overridden column keeps its own value. The inspect button displays the merged definition as JSON.
Planned API surface
defaultColumncolumnsresizablesortableminWidthgetEffectiveColumnDefcolumnTypesAcceptance criteria
- The merge precedence is built-in defaults < defaultColumn < column type(s) in listed order < column definition. (pending)
- Object-valued properties such as `style` are replaced, not deep-merged, unless they are listed in the documented deep-merge allowlist. (pending)
- getEffectiveColumnDef(id) returns the fully merged, frozen definition. (pending)
- Updating defaultColumn at runtime re-applies the merge without losing column state such as width or sort that the user has changed. (pending)