diff --git a/lib/content-services/src/lib/document-list/components/document-list.component.html b/lib/content-services/src/lib/document-list/components/document-list.component.html index 7c5c4984e0..a831517e0e 100644 --- a/lib/content-services/src/lib/document-list/components/document-list.component.html +++ b/lib/content-services/src/lib/document-list/components/document-list.component.html @@ -33,7 +33,8 @@ [enableDragRows]="enableDragRows" [dropListConnectedTo]="dropListConnectedTo" [dragBoundary]="dragBoundary" - [showDragIndicator]="showDragIndicator"> + [showDragIndicator]="showDragIndicator" + [useWholeRowAsDragPreview]="useWholeRowAsDragPreview">
} -
- @for (col of getVisibleColumns(); track col.key) { - @if (col.visibleInDragPreview) { - @if (!col.template) { -
- @switch (data.getColumnType(row, col)) { - @case ('image') { -
- @if (isIconValue(row, col)) { - - } @else { - @if (row.isSelected && !multiselect) { - - } @else { - + @for (col of getVisibleColumns(); track col.key) { + @if (col.visibleInDragPreview) { + @if (!col.template) { +
+ @switch (data.getColumnType(row, col)) { + @case ('image') { +
+ @if (isIconValue(row, col)) { + + } @else { + @if (row.isSelected && !multiselect) { + + } @else { + + } } - } -
+
+ } } - } -
- } @else { -
-
-
-
+ } @else { +
+
+ +
+
+ } } } - } -
+
+ } @if (isEmpty()) {
diff --git a/lib/core/src/lib/datatable/components/datatable/datatable.component.ts b/lib/core/src/lib/datatable/components/datatable/datatable.component.ts index 08406c0231..159059fc37 100644 --- a/lib/core/src/lib/datatable/components/datatable/datatable.component.ts +++ b/lib/core/src/lib/datatable/components/datatable/datatable.component.ts @@ -239,6 +239,9 @@ export class DataTableComponent implements OnInit, AfterContentInit, OnChanges, @Input() showDragIndicator = true; + @Input() + useWholeRowAsDragPreview = true; + /** Emitted when the user clicks a row. */ @Output() rowClick = new EventEmitter();