From 4c257d2ddb31a47e4709b7ba3abdc9dbb27f1378 Mon Sep 17 00:00:00 2001 From: SamraHanifCareem <106157603+SamraHanifCareem@users.noreply.github.com> Date: Fri, 7 Apr 2023 01:30:31 +0500 Subject: [PATCH] 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 { highlightRowId?: number; showThumbnails?: boolean; emptyState?: EmptyStateProps; + columnsForWrapText?: string[]; } function ListView({ @@ -248,6 +249,7 @@ function ListView({ defaultViewMode = 'card', highlightRowId, emptyState, + columnsForWrapText, }: ListViewProps) { const { getTableProps, @@ -399,6 +401,7 @@ function ListView({ columns={columns} loading={loading} highlightRowId={highlightRowId} + columnsForWrapText={columnsForWrapText} /> )} {!loading && rows.length === 0 && (