Skip to content

feat(data-grid): support inline html cells#2497

Open
PapeThePope wants to merge 2 commits into
telekom:mainfrom
PapeThePope:main
Open

feat(data-grid): support inline html cells#2497
PapeThePope wants to merge 2 commits into
telekom:mainfrom
PapeThePope:main

Conversation

@PapeThePope

Copy link
Copy Markdown

I missed the ability to easily render data-grid HTML cells inline.

Summary

  • Add support for rendering HTMLElement content directly inside scale-data-grid HTML cells via display: "inline".
  • Keep the existing type: "html" behavior unchanged by default, including the expand/collapse button and nested content row.
  • Add focused Data Grid specs and update the English and German Data Grid documentation.

Test Plan

  • cd packages/components && ./node_modules/.bin/stencil test --spec --max-workers=2 src/components/data-grid/data-grid.spec.ts
  • cd packages/components && yarn lint

Copilot AI review requested due to automatic review settings May 16, 2026 09:38

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds an opt-in way to render HTMLElement content directly inside scale-data-grid HTML cells (via display: "inline"), while preserving the existing default behavior where HTML cell content is shown in an expandable nested row.

Changes:

  • Update Data Grid rendering to only place non-inline type: "html" cell content into the nested content row.
  • Extend the HTML cell handler to support inline rendering and improve auto-width behavior for inline HTML cells.
  • Add focused Stencil specs and update EN/DE Storybook documentation to describe the new configuration.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
packages/storybook-vue/stories/components/data-grid/data-grid.md Documents display: "inline" for inline HTMLElement rendering in HTML cells.
packages/storybook-vue/stories/components/data-grid/data-grid_de.md German documentation update for the new inline HTML cell behavior.
packages/components/src/components/data-grid/data-grid.tsx Ensures only non-inline HTML cells contribute to nested content rows.
packages/components/src/components/data-grid/data-grid.spec.ts Adds specs covering inline vs nested HTML cell behavior and auto-width longest-content selection.
packages/components/src/components/data-grid/data-grid.css Adds styling for inline HTML cell wrapper.
packages/components/src/components/data-grid/cell-handlers/html-cell.tsx Implements inline HTML cell rendering and updates longest-content logic for auto widths.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants