Skip to content

Commit 1eb6fd0

Browse files
authored
feat(virtual-scroll): remove virtual scroll component (#25808)
1 parent a1ec9aa commit 1eb6fd0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+81
-2328
lines changed

BREAKING.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,26 @@ This is a comprehensive list of the breaking changes introduced in the major ver
1414

1515
- [Components](#version-7x-components)
1616
- [Overlays](#version-7x-overlays)
17+
- [Virtual Scroll](#version-7x-virtual-scroll)
1718

1819
<h2 id="version-7x-components">Components</h2>
1920

2021
<h4 id="version-7x-overlays">Overlays</h4>
2122

2223
Ionic now listens on the `keydown` event instead of the `keyup` event when determining when to dismiss overlays via the "Escape" key. Any applications that were listening on `keyup` to suppress this behavior should listen on `keydown` instead.
2324

25+
<h4 id="version-7x-virtual-scroll">Virtual Scroll</h4>
26+
27+
`ion-virtual-scroll` has been removed from Ionic.
28+
29+
Developers using the component will need to migrate to a virtual scroll solution provided by their framework:
30+
31+
- [Angular](https://ionicframework.com/docs/angular/virtual-scroll)
32+
- [React](https://ionicframework.com/docs/react/virtual-scroll)
33+
- [Vue](https://ionicframework.com/docs/vue/virtual-scroll)
34+
35+
Any references to the virtual scroll types from `@ionic/core` have been removed. Please remove or replace these types: `Cell`, `VirtualNode`, `CellType`, `NodeChange`, `HeaderFn`, `ItemHeightFn`, `FooterHeightFn`, `ItemRenderFn` and `DomRenderFn`.
36+
2437

2538
## Version 6.x
2639

angular/.eslintignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
dist
2-
virtual-scroll
32
scripts
43
proxies.ts

angular/.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"root": true,
3-
"ignorePatterns": ["test/**/*", "src/directives/virtual-scroll/**/*"],
3+
"ignorePatterns": ["test/**/*"],
44
"overrides": [
55
{
66
"files": ["*.ts"],

angular/.prettierignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
dist
2-
virtual-scroll
32
scripts
43
test
54
src/directives/proxies.ts

angular/src/directives/virtual-scroll/virtual-footer.ts

Lines changed: 0 additions & 11 deletions
This file was deleted.

angular/src/directives/virtual-scroll/virtual-header.ts

Lines changed: 0 additions & 11 deletions
This file was deleted.

angular/src/directives/virtual-scroll/virtual-item.ts

Lines changed: 0 additions & 11 deletions
This file was deleted.

angular/src/directives/virtual-scroll/virtual-scroll.ts

Lines changed: 0 additions & 221 deletions
This file was deleted.

angular/src/directives/virtual-scroll/virtual-utils.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.

angular/src/index.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ export {
1414
} from './directives/navigation/router-link-delegate';
1515

1616
export { NavParams } from './directives/navigation/nav-params';
17-
export { IonVirtualScroll } from './directives/virtual-scroll/virtual-scroll';
18-
export { VirtualItem } from './directives/virtual-scroll/virtual-item';
19-
export { VirtualHeader } from './directives/virtual-scroll/virtual-header';
20-
export { VirtualFooter } from './directives/virtual-scroll/virtual-footer';
2117
export { IonModal } from './directives/overlays/modal';
2218
export { IonPopover } from './directives/overlays/popover';
2319
export * from './directives/proxies';

0 commit comments

Comments
 (0)