Skip to content

Commit b77042a

Browse files
mmalerbathePunderWoman
authored andcommitted
docs: point cdk drag-drop doc links to adev api pages (angular#61437)
Now that the drag and drop API pages are on adev we can link to those instead of external linking to material.angular.io PR Close angular#61437
1 parent feb571c commit b77042a

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

adev/src/content/guide/drag-drop.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This page describes the drag and drop directives which lets you quickly create d
1111
- Add previews on drag
1212
- Add custom drag placeholder
1313

14-
For the full API reference, please see the [Angular CDK's drag and drop API reference page](https://material.angular.io/cdk/drag-drop/api).
14+
For the full API reference, please see the [Angular CDK's drag and drop API reference page](api#angular_cdk_drag-drop).
1515

1616
## Before you start
1717

@@ -63,7 +63,7 @@ The drag and drop directives don't update your data model. To update the data mo
6363
<docs-code header="app/app.component.css" path="adev/src/content/examples/drag-drop/src/sorting/app/app.component.css"/>
6464
</docs-code-multifile>
6565

66-
You can use the `CDK_DROP_LIST` injection token that can be used to reference instances of `cdkDropList`. For more information see the [dependency injection guide](https://angular.dev/guide/di) and the [drop list injection token API](https://material.angular.io/cdk/drag-drop/api#CDK_DROP_LIST).
66+
You can use the `CDK_DROP_LIST` injection token that can be used to reference instances of `cdkDropList`. For more information see the [dependency injection guide](https://angular.dev/guide/di) and the [drop list injection token API](api/cdk/drag-drop/CDK_DROP_LIST).
6767

6868
## Transfer draggable elements between lists
6969

@@ -106,7 +106,7 @@ Use the `cdkDropListGroup` directive if you have an unknown number of connected
106106
<docs-code header="app/app.component.css" path="adev/src/content/examples/drag-drop/src/connected-sorting-group/app/app.component.css"/>
107107
</docs-code-multifile>
108108

109-
You can use the `CDK_DROP_LIST_GROUP` injection token that can be used to reference instances of `cdkDropListGroup`. For more information see the [dependency injection guide](https://angular.dev/guide/di) and the [drop list group injection token API](https://material.angular.io/cdk/drag-drop/api#CDK_DROP_LIST_GROUP).
109+
You can use the `CDK_DROP_LIST_GROUP` injection token that can be used to reference instances of `cdkDropListGroup`. For more information see the [dependency injection guide](https://angular.dev/guide/di) and the [drop list group injection token API](api/cdk/drag-drop/CDK_DROP_LIST_GROUP).
110110

111111
### Selective dragging
112112

@@ -145,7 +145,7 @@ By default, the user can drag the entire `cdkDrag` element to move it around. To
145145
</docs-code-multifile>
146146

147147

148-
You can use the `CDK_DRAG_HANDLE` injection token that can be used to reference instances of `cdkDragHandle`. For more information see the [dependency injection guide](https://angular.dev/guide/di) and the [drag handle injection token API](https://material.angular.io/cdk/drag-drop/api#CDK_DRAG_HANDLE).
148+
You can use the `CDK_DRAG_HANDLE` injection token that can be used to reference instances of `cdkDragHandle`. For more information see the [dependency injection guide](https://angular.dev/guide/di) and the [drag handle injection token API](api/cdk/drag-drop/CDK_DRAG_HANDLE).
149149

150150
### Customize drag preview
151151

@@ -161,7 +161,7 @@ The cloned element removes its id attribute in order to avoid having multiple el
161161
<docs-code header="app/app.component.css" path="adev/src/content/examples/drag-drop/src/custom-preview/app/app.component.css"/>
162162
</docs-code-multifile>
163163

164-
You can use the `CDK_DRAG_PREVIEW` injection token that can be used to reference instances of `cdkDragPreview`. For more information see the [dependency injection guide](https://angular.dev/guide/di) and the [drag preview injection token API](https://material.angular.io/cdk/drag-drop/api#CDK_DRAG_PREVIEW).
164+
You can use the `CDK_DRAG_PREVIEW` injection token that can be used to reference instances of `cdkDragPreview`. For more information see the [dependency injection guide](https://angular.dev/guide/di) and the [drag preview injection token API](api/cdk/drag-drop/CDK_DRAG_PREVIEW).
165165

166166
### Customize drag insertion point
167167

@@ -175,7 +175,7 @@ You can change where Angular inserts the preview using the `cdkDragPreviewContai
175175
| `parent` | Angular inserts the preview inside the parent of the element that is being dragged. | Preview inherits the same styles as the dragged element. | Preview may be clipped by `overflow: hidden` or be placed under other elements due to `z-index`. Furthermore, it can affect `:nth-child` selectors and some flex layouts. |
176176
| `ElementRef` or `HTMLElement` | Angular inserts the preview into the specified element. | Preview inherits styles from the specified container element. | Preview may be clipped by `overflow: hidden` or be placed under other elements due to `z-index`. Furthermore, it can affect `:nth-child` selectors and some flex layouts. |
177177

178-
Alternatively, you can modify the `CDK_DRAG_CONFIG` injection token to update `previewContainer` within the config if the value is `global` or `parent`. For more information see the [dependency injection guide](https://angular.dev/guide/di), [drag config injection token API](https://material.angular.io/cdk/drag-drop/api#DragDropConfig), and the [drag drop config API](https://material.angular.io/cdk/drag-drop/api#DragDropConfig).
178+
Alternatively, you can modify the `CDK_DRAG_CONFIG` injection token to update `previewContainer` within the config if the value is `global` or `parent`. For more information see the [dependency injection guide](https://angular.dev/guide/di), [drag config injection token API](api/cdk/drag-drop/CDK_DRAG_CONFIG), and the [drag drop config API](api/cdk/drag-drop/DragDropConfig).
179179

180180
### Customize drag placeholder
181181

@@ -187,7 +187,7 @@ While a `cdkDrag` element is being dragged, the directive creates a placeholder
187187
<docs-code header="app/app.component.css" path="adev/src/content/examples/drag-drop/src/custom-placeholder/app/app.component.css"/>
188188
</docs-code-multifile>
189189

190-
You can use the `CDK_DRAG_PLACEHOLDER` injection token that can be used to reference instances of `cdkDragPlaceholder`. For more information see the [dependency injection guide](https://angular.dev/guide/di) and the [drag placeholder injection token API](https://material.angular.io/cdk/drag-drop/api#CDK_DRAG_PLACEHOLDER).
190+
You can use the `CDK_DRAG_PLACEHOLDER` injection token that can be used to reference instances of `cdkDragPlaceholder`. For more information see the [dependency injection guide](https://angular.dev/guide/di) and the [drag placeholder injection token API](api/cdk/drag-drop/CDK_DRAG_PLACEHOLDER).
191191

192192
### Customize drag root element
193193

@@ -201,7 +201,7 @@ The attribute accepts a selector and looks up the DOM until it finds an element
201201
<docs-code header="app/app.component.css" path="adev/src/content/examples/drag-drop/src/root-element/app/app.component.css"/>
202202
</docs-code-multifile>
203203

204-
Alternatively, you can modify the `CDK_DRAG_CONFIG` injection token to update `rootElementSelector` within the config. For more information see the [dependency injection guide](https://angular.dev/guide/di), [drag config injection token API](https://material.angular.io/cdk/drag-drop/api#DragDropConfig), and the [drag drop config API](https://material.angular.io/cdk/drag-drop/api#DragDropConfig).
204+
Alternatively, you can modify the `CDK_DRAG_CONFIG` injection token to update `rootElementSelector` within the config. For more information see the [dependency injection guide](https://angular.dev/guide/di), [drag config injection token API](api/cdk/drag-drop/CDK_DRAG_CONFIG), and the [drag drop config API](api/cdk/drag-drop/DragDropConfig).
205205

206206
### Set DOM position of a draggable element
207207

@@ -223,7 +223,7 @@ To stop the user from being able to drag a `cdkDrag` element outside of another
223223
<docs-code header="app/app.component.css" path="adev/src/content/examples/drag-drop/src/boundary/app/app.component.css"/>
224224
</docs-code-multifile>
225225

226-
Alternatively, you can modify the `CDK_DRAG_CONFIG` injection token to update boundaryElement within the config. For more information see the [dependency injection guide](https://angular.dev/guide/di), [drag config injection token API](https://material.angular.io/cdk/drag-drop/api#DragDropConfig), and the [drag drop config API](https://material.angular.io/cdk/drag-drop/api#DragDropConfig).
226+
Alternatively, you can modify the `CDK_DRAG_CONFIG` injection token to update boundaryElement within the config. For more information see the [dependency injection guide](https://angular.dev/guide/di), [drag config injection token API](api/cdk/drag-drop/CDK_DRAG_CONFIG), and the [drag drop config API](api/cdk/drag-drop/DragDropConfig).
227227

228228
### Restrict movement along an axis
229229

@@ -235,7 +235,7 @@ By default, `cdkDrag` allows free movement in all directions. To restrict draggi
235235
<docs-code header="app/app.component.css" path="adev/src/content/examples/drag-drop/src/axis-lock/app/app.component.css"/>
236236
</docs-code-multifile>
237237

238-
Alternatively, you can modify the `CDK_DRAG_CONFIG` injection token to update `lockAxis` within the config. For more information see the [dependency injection guide](https://angular.dev/guide/di), [drag config injection token API](https://material.angular.io/cdk/drag-drop/api#DragDropConfig), and the [drag drop config API](https://material.angular.io/cdk/drag-drop/api#DragDropConfig).
238+
Alternatively, you can modify the `CDK_DRAG_CONFIG` injection token to update `lockAxis` within the config. For more information see the [dependency injection guide](https://angular.dev/guide/di), [drag config injection token API](api/cdk/drag-drop/CDK_DRAG_CONFIG), and the [drag drop config API](api/cdk/drag-drop/DragDropConfig).
239239

240240
### Delay dragging
241241

@@ -249,7 +249,7 @@ You can delay the dragging sequence using the `cdkDragStartDelay` input. The inp
249249
<docs-code header="app/app.component.css" path="adev/src/content/examples/drag-drop/src/delay-drag/app/app.component.css"/>
250250
</docs-code-multifile>
251251

252-
Alternatively, you can modify the `CDK_DRAG_CONFIG` injection token to update dragStartDelay within the config. For more information see the [dependency injection guide](https://angular.dev/guide/di), [drag config injection token API](https://material.angular.io/cdk/drag-drop/api#DragDropConfig), and the [drag drop config API](https://material.angular.io/cdk/drag-drop/api#DragDropConfig).
252+
Alternatively, you can modify the `CDK_DRAG_CONFIG` injection token to update dragStartDelay within the config. For more information see the [dependency injection guide](https://angular.dev/guide/di), [drag config injection token API](api/cdk/drag-drop/CDK_DRAG_CONFIG), and the [drag drop config API](api/cdk/drag-drop/DragDropConfig).
253253

254254
### Disable dragging
255255

@@ -261,7 +261,7 @@ If you want to disable dragging for a particular drag item, set the `cdkDragDisa
261261
<docs-code header="app/app.component.css" path="adev/src/content/examples/drag-drop/src/disable-drag/app/app.component.css"/>
262262
</docs-code-multifile>
263263

264-
Alternatively, you can modify the `CDK_DRAG_CONFIG` injection token to update `draggingDisabled` within the config. For more information see the [dependency injection guide](https://angular.dev/guide/di), [drag config injection token API](https://material.angular.io/cdk/drag-drop/api#DragDropConfig), and the [drag drop config API](https://material.angular.io/cdk/drag-drop/api#DragDropConfig).
264+
Alternatively, you can modify the `CDK_DRAG_CONFIG` injection token to update `draggingDisabled` within the config. For more information see the [dependency injection guide](https://angular.dev/guide/di), [drag config injection token API](api/cdk/drag-drop/CDK_DRAG_CONFIG), and the [drag drop config API](api/cdk/drag-drop/DragDropConfig).
265265

266266
## Sorting customizations
267267

@@ -275,7 +275,7 @@ By default, the `cdkDropList` directive assumes lists are vertical. This can be
275275
<docs-code header="app/app.component.css" path="adev/src/content/examples/drag-drop/src/horizontal-sorting/app/app.component.css"/>
276276
</docs-code-multifile>
277277

278-
Alternatively, you can modify the `CDK_DRAG_CONFIG` injection token to update `listOrientation` within the config. For more information see the [dependency injection guide](https://angular.dev/guide/di), [drag config injection token API](https://material.angular.io/cdk/drag-drop/api#DragDropConfig), and the [drag drop config API](https://material.angular.io/cdk/drag-drop/api#DragDropConfig).
278+
Alternatively, you can modify the `CDK_DRAG_CONFIG` injection token to update `listOrientation` within the config. For more information see the [dependency injection guide](https://angular.dev/guide/di), [drag config injection token API](api/cdk/drag-drop/CDK_DRAG_CONFIG), and the [drag drop config API](api/cdk/drag-drop/DragDropConfig).
279279

280280
### List wrapping
281281

@@ -310,7 +310,7 @@ There are cases where draggable elements can be dragged out of one `cdkDropList`
310310
<docs-code header="app/app.component.css" path="adev/src/content/examples/drag-drop/src/disable-sorting/app/app.component.css"/>
311311
</docs-code-multifile>
312312

313-
Alternatively, you can modify the `CDK_DRAG_CONFIG` injection token to update sortingDisabled within the config. For more information see the [dependency injection guide](https://angular.dev/guide/di), [drag config injection token API](https://material.angular.io/cdk/drag-drop/api#DragDropConfig), and the [drag drop config API](https://material.angular.io/cdk/drag-drop/api#DragDropConfig).
313+
Alternatively, you can modify the `CDK_DRAG_CONFIG` injection token to update sortingDisabled within the config. For more information see the [dependency injection guide](https://angular.dev/guide/di), [drag config injection token API](api/cdk/drag-drop/CDK_DRAG_CONFIG), and the [drag drop config API](api/cdk/drag-drop/DragDropConfig).
314314

315315
## Customize animations
316316

adev/src/content/guide/testing/component-harnesses-overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ Many developers can be categorized by one of the following developer type catego
2828
| Component harness authors | Developers who maintain some reusable Angular components and want to create a test harness for its users to use in their tests. For example, an author of a third party Angular component library or a developer who maintains a set of common components for a large Angular application. | [Creating component harnesses for your components](guide/testing/creating-component-harnesses) |
2929
| Harness environment authors | Developers who want to add support for using component harnesses in additional testing environments. For information on supported testing environments out-of-the-box, see the [test harness environments and loaders](guide/testing/using-component-harnesses#test-harness-environments-and-loaders). | [Adding support for additional testing environments](guide/testing/component-harnesses-testing-environments) |
3030

31-
For the full API reference, please see the [Angular CDK's component harness API reference page](/api/cdk/testing/AsyncOptionPredicate).
31+
For the full API reference, please see the [Angular CDK's component harness API reference page](/api#angular_cdk_testing).

0 commit comments

Comments
 (0)