feat(wrap-text): Wrap text support for specific columns in Grid (#23328)

This commit is contained in:
SamraHanifCareem 2023-04-07 01:30:31 +05:00 committed by GitHub
parent a7f306181e
commit 4c257d2ddb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 && (