@rdlabo/ngx-cdk-scroll-strategies 21.6.2 → 21.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -5
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
This is strategies of dynamic item size for `@angular/cdk/scrolling`. This allows you set specify each item size in the array to be used for Virtual Scroll. Although the repository name includes “Ionic” this strategy only works with Angular.
|
|
4
4
|
|
|
5
|
+
**Documentation:** [Read the full documentation](https://docs.rdlabo.dev/projects/ngx-cdk-scroll-strategies)
|
|
6
|
+
|
|
5
7
|
This is a simple coding concept:
|
|
6
8
|
|
|
7
9
|
```html
|
|
@@ -31,7 +33,7 @@ npm install @rdlabo/ngx-cdk-scroll-strategies
|
|
|
31
33
|
> This is a simple example of how to use it.
|
|
32
34
|
|
|
33
35
|
- Demo: https://rdlabo-ionic-angular-library.netlify.app/main/scroll-strategies/simple
|
|
34
|
-
- Source: https://github.com/rdlabo-
|
|
36
|
+
- Source: https://github.com/rdlabo-dev/ionic-angular-library/blob/main/projects/demo/src/app/scroll-strategies/pages/scroll-simple
|
|
35
37
|
|
|
36
38
|
```ts
|
|
37
39
|
import { CdkDynamicSizeVirtualScroll, itemDynamicSize } from '@rdlabo/ngx-cdk-scroll-strategies';
|
|
@@ -66,14 +68,14 @@ Other than this, it works the same way as `@angular/cdk/scrolling`.
|
|
|
66
68
|
> It is difficult without basic knowledge of Angular.
|
|
67
69
|
|
|
68
70
|
- Demo: https://rdlabo-ionic-angular-library.netlify.app/main/scroll-strategies/advanced
|
|
69
|
-
- Source: https://github.com/rdlabo-
|
|
71
|
+
- Source: https://github.com/rdlabo-dev/ionic-angular-library/blob/main/projects/demo/src/app/scroll-strategies/pages/scroll-advanced
|
|
70
72
|
|
|
71
73
|
### Reverse Usage
|
|
72
74
|
|
|
73
75
|
> This is a demo for reverse scrolling like WeChat.
|
|
74
76
|
|
|
75
77
|
- Demo: https://rdlabo-ionic-angular-library.netlify.app/main/scroll-strategies/reverse
|
|
76
|
-
- Source: https://github.com/rdlabo-
|
|
78
|
+
- Source: https://github.com/rdlabo-dev/ionic-angular-library/blob/main/projects/demo/src/app/scroll-strategies/pages/scroll-reverse
|
|
77
79
|
|
|
78
80
|
If reverse scroll, add `isReverse` directive to `cdk-virtual-scroll-viewport` tag.
|
|
79
81
|
|
|
@@ -121,7 +123,7 @@ div.reverse-items {
|
|
|
121
123
|
```
|
|
122
124
|
|
|
123
125
|
**In Reverse Scroll, CdkVirtualScrollViewport's measureScrollOffset does not work. Please use the scrollOffset of this directive.**
|
|
124
|
-
https://github.com/rdlabo-
|
|
126
|
+
https://github.com/rdlabo-dev/ionic-angular-library/blob/main/projects/scroll-strategies/src/lib/dynamic-size-virtual-scroll-strategy.ts
|
|
125
127
|
|
|
126
128
|
The reverse layout uses negative native `scrollTop` values. `scrollToIndex()` accepts a logical item index as usual and converts its cumulative offset to that native coordinate internally.
|
|
127
129
|
|
|
@@ -133,7 +135,7 @@ This package contains a Helper Service that simplifies development with Virtual
|
|
|
133
135
|
import { DynamicSizeVirtualScrollService } from '@rdlabo/ngx-cdk-scroll-strategies';
|
|
134
136
|
```
|
|
135
137
|
|
|
136
|
-
Detail is here: https://github.com/rdlabo-
|
|
138
|
+
Detail is here: https://github.com/rdlabo-dev/ionic-angular-library/blob/main/projects/scroll-strategies/src/lib/dynamic-size-virtual-scroll.service.ts
|
|
137
139
|
|
|
138
140
|
## FQA
|
|
139
141
|
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rdlabo/ngx-cdk-scroll-strategies",
|
|
3
|
-
"version": "21.6.
|
|
3
|
+
"version": "21.6.5",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
|
-
"url": "git@github.com:rdlabo-
|
|
6
|
+
"url": "git@github.com:rdlabo-dev/ionic-angular-library.git"
|
|
7
7
|
},
|
|
8
8
|
"peerDependencies": {
|
|
9
9
|
"@angular/cdk": "^21.0.0",
|