From 82a18b123a3a47b82b6503c8409b59c43dbe8bd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=87etin?= <69278826+cetincakiroglu@users.noreply.github.com> Date: Fri, 22 Mar 2024 18:03:59 +0300 Subject: [PATCH] Update virtualscrolldoc.ts --- src/app/showcase/doc/treeselect/virtualscrolldoc.ts | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/app/showcase/doc/treeselect/virtualscrolldoc.ts b/src/app/showcase/doc/treeselect/virtualscrolldoc.ts index aef14be8b6a..81d617a48c9 100644 --- a/src/app/showcase/doc/treeselect/virtualscrolldoc.ts +++ b/src/app/showcase/doc/treeselect/virtualscrolldoc.ts @@ -4,8 +4,8 @@ import { NodeService } from '../../service/nodeservice'; @Component({ selector: 'virtual-scroll-doc', - template: `
- + template: ` +

VirtualScrolling is an efficient way of rendering the options by displaying a small subset of data in the viewport at any time. When dealing with huge number of options, it is suggested to enable VirtualScrolling to avoid performance issues. Usage is simple as setting virtualScroll property to true and defining virtualScrollItemSize to specify the height of an item.

@@ -13,13 +13,9 @@ import { NodeService } from '../../service/nodeservice'; - -
` + ` }) export class VirtualScrollDoc { - @Input() id: string; - - @Input() title: string; nodes!: any[];