mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
docs(drag-drop) correct 'lockAxis' to 'cdkDropListLockAxis' (#14578)
Alike https://github.com/angular/material2/pull/13802 Closes https://github.com/angular/material2/issues/14572
This commit is contained in:
@@ -147,7 +147,7 @@ also be used when `cdkDrag` is placed inside a `cdkDropList`.
|
||||
|
||||
### Restricting movement along an axis
|
||||
By default, `cdkDrag` allows free movement in all directions. To restrict dragging to a
|
||||
specific axis, you can set `cdkDragLockAxis` on `cdkDrag` or `lockAxis` on `cdkDropList`
|
||||
specific axis, you can set `cdkDragLockAxis` on `cdkDrag` or `cdkDropListLockAxis` on `cdkDropList`
|
||||
to either `"x"` or `"y"`.
|
||||
|
||||
<!-- example(cdk-drag-drop-axis-lock) -->
|
||||
|
||||
Reference in New Issue
Block a user