Repository navigation
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The new option contract is incompatible with PivotGrid’s inherited getter types, causing existing DataArea and header-area constructor calls to fail type checking.
1 open issue
What changed in this PR
This PR strengthens typing in PivotGrid’s area-rendering layer, reusing data-controller cell types and introducing a narrow interface for access to the widget.
Changes:
- Adds shared types for cells, component access, styling, and scrolling.
- Extracts cell rendering into a helper and removes unused closing-markup methods.
- Updates area implementations and tests, adding header-cell rendering coverage.
| File | Description |
|---|---|
packages/devextreme/js/__internal/grids/pivot_grid/headers_area/m_headers_area.ts |
Types header rendering, scrolling, and layout methods. |
packages/devextreme/js/__internal/grids/pivot_grid/headers_area/m_headers_area.test.ts |
Adds cell-rendering tests and typed fixtures. |
packages/devextreme/js/__internal/grids/pivot_grid/fields_area/m_fields_area.ts |
Adapts field areas to the typed base class and chooser access. |
packages/devextreme/js/__internal/grids/pivot_grid/data_area/m_data_area.ts |
Types data-area rendering and scrolling methods. |
packages/devextreme/js/__internal/grids/pivot_grid/data_area/m_data_area.test.ts |
Updates fixtures and DOM access for stronger typing. |
packages/devextreme/js/__internal/grids/pivot_grid/area_item/types.ts |
Defines shared area types and the component contract. |
packages/devextreme/js/__internal/grids/pivot_grid/area_item/m_area_item.ts |
Types the base area implementation and extracts cell rendering. |
Review effort: Balanced
This was referenced Nov 23, 2026
| @@ -117,7 +121,7 @@ class FieldsArea extends AreaItem { | |||
| const that = this; | |||
Contributor
There was a problem hiding this comment.
we can remove this alias
anna-shakhova
previously approved these changes
Nov 23, 2026
anna-shakhova
previously approved these changes
Nov 24, 2026
bit-byte0
force-pushed
the
refactor/pivotgrid-type-area-item-main
branch
from
November 24, 2026 09:30
cb822bd to
04b767f
Compare
anna-shakhova
approved these changes
Nov 24, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

What
Typed PivotGrid area item, headers and data areas
How
Area cells reuse the data controller types, the widget is reached through a narrow
AreaItemComponentinterface. Cell rendering moved into a helper, unused_getCloseMainElementMarkupremoved