Skip to content

Commit fa2af07

Browse files
docs: update Angular CDK apis (angular#61874)
Updated Angular CDK api files. PR Close angular#61874
1 parent ab5b7df commit fa2af07

File tree

2 files changed

+101
-9
lines changed

2 files changed

+101
-9
lines changed

adev/src/content/cdk/_build-info.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"branchName": "refs/heads/main",
3-
"sha": "e1fad0e3bf8090180cb2a966ac7d5a094ddc6a7c"
3+
"sha": "2b8a4860d0941dc2c38f1db0d7f9ca8ffed407d0"
44
}

adev/src/content/cdk/cdk_drag_drop.json

Lines changed: 100 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1371,6 +1371,14 @@
13711371
"description": "Selector that will be used to resolve an alternate element container for the drop list.\nPassing an alternate container is useful for the cases where one might not have control\nover the parent node of the draggable items within the list (e.g. due to content projection).\nThis allows for usages like:\n\n```\n<div cdkDropList cdkDropListElementContainer=\".inner\">\n <div class=\"inner\">\n <div cdkDrag></div>\n </div>\n</div>\n```",
13721372
"jsdocTags": []
13731373
},
1374+
{
1375+
"name": "hasAnchor",
1376+
"type": "boolean",
1377+
"memberType": "property",
1378+
"memberTags": [],
1379+
"description": "By default when an item leaves its initial container, its placeholder will be transferred\nto the new container. If that's not desirable for your use case, you can enable this option\nwhich will clone the placeholder and leave it inside the original container. If the item is\nreturned to the initial container, the anchor element will be removed automatically.\n\nThe cloned placeholder can be styled by targeting the `cdk-drag-anchor` class.\n\nThis option is useful in combination with `cdkDropListSortingDisabled` to implement copying\nbehavior in a drop list.",
1380+
"jsdocTags": []
1381+
},
13741382
{
13751383
"name": "dropped",
13761384
"type": "EventEmitter<CdkDragDrop<T, any, any>>",
@@ -1591,7 +1599,7 @@
15911599
"source": {
15921600
"filePath": "/src/cdk/drag-drop/directives/drop-list.ts",
15931601
"startLine": 36,
1594-
"endLine": 423
1602+
"endLine": 438
15951603
}
15961604
},
15971605
{
@@ -2747,6 +2755,14 @@
27472755
"description": "Number of pixels to scroll for each frame when auto-scrolling an element.",
27482756
"jsdocTags": []
27492757
},
2758+
{
2759+
"name": "hasAnchor",
2760+
"type": "boolean",
2761+
"memberType": "property",
2762+
"memberTags": [],
2763+
"description": "Whether the items in the list should leave an anchor node when leaving the initial container.",
2764+
"jsdocTags": []
2765+
},
27502766
{
27512767
"name": "enterPredicate",
27522768
"type": "(drag: DragRef<any>, drop: DropListRef<any>) => boolean",
@@ -3858,6 +3874,70 @@
38583874
"memberType": "method",
38593875
"memberTags": []
38603876
},
3877+
{
3878+
"name": "getItemAtIndex",
3879+
"signatures": [
3880+
{
3881+
"name": "getItemAtIndex",
3882+
"entryType": "function",
3883+
"description": "Gets the item at a specific index.",
3884+
"generics": [],
3885+
"isNewType": false,
3886+
"jsdocTags": [
3887+
{
3888+
"name": "param",
3889+
"comment": "Index at which to retrieve the item."
3890+
}
3891+
],
3892+
"params": [
3893+
{
3894+
"name": "index",
3895+
"description": "Index at which to retrieve the item.",
3896+
"type": "number",
3897+
"isOptional": false,
3898+
"isRestParam": false
3899+
}
3900+
],
3901+
"rawComment": "/**\n * Gets the item at a specific index.\n * @param index Index at which to retrieve the item.\n */",
3902+
"returnType": "DragRef<any> | null"
3903+
}
3904+
],
3905+
"implementation": {
3906+
"params": [
3907+
{
3908+
"name": "index",
3909+
"description": "Index at which to retrieve the item.",
3910+
"type": "number",
3911+
"isOptional": false,
3912+
"isRestParam": false
3913+
}
3914+
],
3915+
"isNewType": false,
3916+
"returnType": "DragRef<any> | null",
3917+
"generics": [],
3918+
"name": "getItemAtIndex",
3919+
"description": "Gets the item at a specific index.",
3920+
"entryType": "function",
3921+
"jsdocTags": [
3922+
{
3923+
"name": "param",
3924+
"comment": "Index at which to retrieve the item."
3925+
}
3926+
],
3927+
"rawComment": "/**\n * Gets the item at a specific index.\n * @param index Index at which to retrieve the item.\n */"
3928+
},
3929+
"entryType": "function",
3930+
"description": "Gets the item at a specific index.",
3931+
"jsdocTags": [
3932+
{
3933+
"name": "param",
3934+
"comment": "Index at which to retrieve the item."
3935+
}
3936+
],
3937+
"rawComment": "/**\n * Gets the item at a specific index.\n * @param index Index at which to retrieve the item.\n */",
3938+
"memberType": "method",
3939+
"memberTags": []
3940+
},
38613941
{
38623942
"name": "isReceiving",
38633943
"signatures": [
@@ -3905,7 +3985,7 @@
39053985
"source": {
39063986
"filePath": "/src/cdk/drag-drop/drop-list-ref.ts",
39073987
"startLine": 55,
3908-
"endLine": 772
3988+
"endLine": 787
39093989
}
39103990
},
39113991
{
@@ -4681,8 +4761,8 @@
46814761
"implements": [],
46824762
"source": {
46834763
"filePath": "/src/cdk/drag-drop/drag-ref.ts",
4684-
"startLine": 99,
4685-
"endLine": 102
4764+
"startLine": 102,
4765+
"endLine": 105
46864766
}
46874767
},
46884768
{
@@ -4695,8 +4775,8 @@
46954775
"jsdocTags": [],
46964776
"source": {
46974777
"filePath": "/src/cdk/drag-drop/drag-ref.ts",
4698-
"startLine": 122,
4699-
"endLine": 122
4778+
"startLine": 125,
4779+
"endLine": 125
47004780
}
47014781
},
47024782
{
@@ -5885,8 +5965,8 @@
58855965
"implements": [],
58865966
"source": {
58875967
"filePath": "/src/cdk/drag-drop/drag-ref.ts",
5888-
"startLine": 127,
5889-
"endLine": 1588
5968+
"startLine": 130,
5969+
"endLine": 1631
58905970
}
58915971
}
58925972
],
@@ -6463,6 +6543,10 @@
64636543
"CdkDropList.elementContainerSelector",
64646544
"@angular/cdk/drag-drop"
64656545
],
6546+
[
6547+
"CdkDropList.hasAnchor",
6548+
"@angular/cdk/drag-drop"
6549+
],
64666550
[
64676551
"CdkDropList.dropped",
64686552
"@angular/cdk/drag-drop"
@@ -6639,6 +6723,10 @@
66396723
"DropListRef.autoScrollStep",
66406724
"@angular/cdk/drag-drop"
66416725
],
6726+
[
6727+
"DropListRef.hasAnchor",
6728+
"@angular/cdk/drag-drop"
6729+
],
66426730
[
66436731
"DropListRef.enterPredicate",
66446732
"@angular/cdk/drag-drop"
@@ -6735,6 +6823,10 @@
67356823
"DropListRef.getItemIndex",
67366824
"@angular/cdk/drag-drop"
67376825
],
6826+
[
6827+
"DropListRef.getItemAtIndex",
6828+
"@angular/cdk/drag-drop"
6829+
],
67386830
[
67396831
"DropListRef.isReceiving",
67406832
"@angular/cdk/drag-drop"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy