You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ru...@apache.org on 2023/04/06 20:30:39 UTC

[superset] branch master updated: feat(wrap-text): Wrap text support for specific columns in Grid (#23328)

This is an automated email from the ASF dual-hosted git repository.

rusackas pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 4c257d2ddb feat(wrap-text): Wrap text support for specific columns in Grid (#23328)
4c257d2ddb is described below

commit 4c257d2ddb31a47e4709b7ba3abdc9dbb27f1378
Author: SamraHanifCareem <10...@users.noreply.github.com>
AuthorDate: Fri Apr 7 01:30:31 2023 +0500

    feat(wrap-text): Wrap text support for specific columns in Grid (#23328)
---
 superset-frontend/src/components/ListView/ListView.tsx | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/superset-frontend/src/components/ListView/ListView.tsx b/superset-frontend/src/components/ListView/ListView.tsx
index f4b5f083c7..0a1c14ddb4 100644
--- a/superset-frontend/src/components/ListView/ListView.tsx
+++ b/superset-frontend/src/components/ListView/ListView.tsx
@@ -226,6 +226,7 @@ export interface ListViewProps<T extends object = any> {
   highlightRowId?: number;
   showThumbnails?: boolean;
   emptyState?: EmptyStateProps;
+  columnsForWrapText?: string[];
 }
 
 function ListView<T extends object = any>({
@@ -248,6 +249,7 @@ function ListView<T extends object = any>({
   defaultViewMode = 'card',
   highlightRowId,
   emptyState,
+  columnsForWrapText,
 }: ListViewProps<T>) {
   const {
     getTableProps,
@@ -399,6 +401,7 @@ function ListView<T extends object = any>({
               columns={columns}
               loading={loading}
               highlightRowId={highlightRowId}
+              columnsForWrapText={columnsForWrapText}
             />
           )}
           {!loading && rows.length === 0 && (