Open rahulbarwal opened 1 day ago
The changes in this pull request enhance the TableWidgetV2
component by introducing support for HTML content in table cells. This is achieved through the addition of a new HTMLCell
component and modifications to the existing Table.tsx
file to accommodate new column type logic. The ColumnTypes
enum is updated to include HTML, and the configuration for table columns is expanded to allow for HTML as a selectable type. Additionally, column resizing behavior is refined to ensure minimum widths, improving the overall functionality of the table widget.
File Path | Change Summary |
---|---|
app/client/src/widgets/TableWidgetV2/component/Table.tsx |
Updated import statements and enhanced logic for column properties, including conditions for virtual rendering and column resizing. |
app/client/src/widgets/TableWidgetV2/component/cellComponents/HTMLCell.tsx |
Introduced new HTMLCell component for rendering HTML content in a table cell, including props for value and font size, using Interweave for safe HTML rendering. |
app/client/src/widgets/TableWidgetV2/constants.ts |
Added new constant HTML to ColumnTypes enum, allowing HTML content in table columns. |
app/client/src/widgets/TableWidgetV2/widget/index.tsx |
Integrated HTMLCell into renderCell method of TableWidgetV2 , adding case for ColumnTypes.HTML in the switch statement. |
app/client/src/widgets/TableWidgetV2/widget/propertyConfig/PanelConfig/Data.ts |
Added "HTML" option to columnType configuration, updated hidden conditions for related properties to include ColumnTypes.HTML . |
Objective | Addressed | Explanation |
---|---|---|
Support HTML as a column type in the table widget (#13681) | ✅ |
WDSTableWidget
, potentially impacting the overall structure of table widgets.<a>
tags, directly related to rendering logic changes.Enhancement
, Table Widget
, Widgets Product
, Production
, Community Reported
, Medium
, ok-to-test
, UI Building Product
, Help enterprise
, Widgets & Accelerators Pod
"In the table where data flows,
HTML shines, as content grows.
With cells that wrap and styles that gleam,
Our widgets now fulfill the dream!
So raise a toast to code so neat,
In every row, our triumphs meet!" 🎉
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
/build-deploy-preview skip-tests=true
Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/11934394632.
Workflow: On demand build Docker image and deploy preview
.
skip-tests: true
.
env: ``.
PR: 37603.
recreate: .
Deploy-Preview-URL: https://ce-37603.dp.appsmith.com
Description
Fixes #13681 or
Fixes
Issue URL
Automation
/ok-to-test tags=""
:mag: Cypress test results
Communication
Should the DevRel and Marketing teams inform users about this change?
Description
Fixes #
Issue Number
or
Fixes
Issue URL
Automation
/ok-to-test tags=""
:mag: Cypress test results
Communication
Should the DevRel and Marketing teams inform users about this change?
Summary by CodeRabbit
Release Notes
New Features
HTMLCell
component for rendering HTML content within table cells.Bug Fixes
Enhancements