Skip to content

Commit

Permalink
feat: wrap text support added for list view
Browse files Browse the repository at this point in the history
  • Loading branch information
SamraHanifCareem committed Mar 9, 2023
1 parent 57db8f9 commit c8c96b8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions superset-frontend/src/components/ListView/ListView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>({
Expand All @@ -248,6 +249,7 @@ function ListView<T extends object = any>({
defaultViewMode = 'card',
highlightRowId,
emptyState,
columnsForWrapText,
}: ListViewProps<T>) {
const {
getTableProps,
Expand Down Expand Up @@ -399,6 +401,7 @@ function ListView<T extends object = any>({
columns={columns}
loading={loading}
highlightRowId={highlightRowId}
columnsForWrapText={columnsForWrapText}
/>
)}
{!loading && rows.length === 0 && (
Expand Down

0 comments on commit c8c96b8

Please sign in to comment.