You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(drag-drop): add class to indicate whether a container can receive an item (#14532)
Adds the `cdk-drop-list-receiving` class to drop containers that are able to receive the item that is currently being dragged. This class can be used to indicate to the user where they can drop an item.
Fixes#14439.
Copy file name to clipboardExpand all lines: src/cdk/drag-drop/drag-drop.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -75,6 +75,7 @@ by the directives:
75
75
|`.cdk-drag-preview`| This is the element that will be rendered next to the user's cursor as they're dragging an item in a sortable list. By default the element looks exactly like the element that is being dragged. |
76
76
|`.cdk-drag-placeholder`| This is element that will be shown instead of the real element as it's being dragged inside a `cdkDropList`. By default this will look exactly like the element that is being sorted. |
77
77
|`.cdk-drop-list-dragging`| A class that is added to `cdkDropList` while the user is dragging an item. |
78
+
|`.cdk-drop-list-receiving`| A class that is added to `cdkDropList` when it can receive an item that is being dragged inside a connected drop list. |
78
79
79
80
### Animations
80
81
The drag-and-drop module supports animations both while sorting an element inside a list, as well as
0 commit comments