MergeCells
Feature
This feature merges cells that have the same value in sorted (or optionally any) columns configured to mergeCells.
The content of merged cells is sticky for Grids with a single subgrid section when all columns fit in view (content stays in view until the cell is scrolled fully out of view).
Support for sticky content is limited because of how
position: sticky works. Grid scrolls vertically in one element, and horizontally in another (to support multiple regions in the grid), and this setup is not supported by current browsers implementation of sticky positioning Try scrolling in the demo below. As mentioned above, cells are by default merged only in sorted columns - try sorting by the other columns ("City" and "Favorite food" are configured to merge cells):
By configuring the feature with sortedOnly : false, cells can be merged in any column:
This feature is disabled by default.
This feature will not work properly when Store uses lazyLoad
See also
- StickyCells - Sticky cell content during scroll
- mergeCells - Per-column merge config
No results
Configs
Configs are options you supply in a configuration object when creating an instance of this classProperties
Properties are getters/setters or publicly accessible variables on this class-
Identifies an object as an instance of MergeCells class, or subclass thereof.
-
Identifies an object as an instance of MergeCells class, or subclass thereof.
id: mergeCells