-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Description
Improve cdkDragLockAxis type DragAxis : 'x' | 'y'
The DragAxis : 'x' | 'y' only accept x and y, in some scenarios we need to lock one direction dynamically and another we need to remove the lockaxis but it only accept x or y due to which we can't change to booth views.
In simple words, the DragAxis type should be like DragAxis : 'x' | 'y' | undefined.
If undefined is passed it will remove the lock from booth axis (x and y) if x or y is passed it will lock that.
so the users can change lock or free axis dynamically
Proposed solution
In simple words, the DragAxis type should be like DragAxis : 'x' | 'y' | undefined.
If undefined is passed it will remove the lock from booth axis (x and y) if x or y is passed it will lock that.
so the users can change lock or free axis dynamically
Alternatives considered
In simple words, the DragAxis type should be like DragAxis : 'x' | 'y' | undefined.
If undefined is passed it will remove the lock from booth axis (x and y) if x or y is passed it will lock that.
so the users can change lock or free axis dynamically