mirror of
https://github.com/apache/superset.git
synced 2024-09-07 06:17:45 -04:00
feat(wrap-text): Wrap text support for specific columns in Grid (#23328)
This commit is contained in:
parent
a7f306181e
commit
4c257d2ddb
@ -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 && (
|
||||
|
Loading…
Reference in New Issue
Block a user