Skip to content

Improve DragAxis : 'x' | 'y' #31825

@abdulwahid-csit

Description

@abdulwahid-csit

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

Metadata

Metadata

Assignees

Labels

P4A relatively minor issue that is not relevant to core functionsarea: cdk/drag-drop

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions