Locked Columns
Individual columns can be locked against moving, hiding, pinning changes or resizing. Essential columns, such as row selectors or IDs, then stay in place no matter what the user does.
Planned. This page shows the specification from issue #185. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
A selection column with lockPosition 'left' and lockVisible, an 'ID' column with lockPinned, and 8 normal columns.
Expected behavior
Locked columns show a lock indicator on hover. Other columns cannot be dropped past a lockPosition column. The chooser, menu and API respect the locks. Locks restrict user interactions by default. API calls bypass the locks only when force:true is passed.
Planned API surface
columnDef.lockPosition ('left'|'right'|true)columnDef.lockVisiblecolumnDef.lockPinnedcolumnDef.resizableAcceptance criteria
- No user interaction can violate a lock. (pending)
- API calls without force are rejected with a dev warning, and the state is unchanged. (pending)
- Drop indicators are never shown at positions that violate a lock. (pending)
- The lock state is reflected in the chooser (disabled checkbox) and the menu (disabled items). (pending)