npm.io
25.3.5 • Published 1 week ago

@vaadin/virtual-list

Licence
Apache-2.0
Version
25.3.5
Deps
5
Size
57 kB
Vulns
0
Weekly
0
Stars
584

@vaadin/virtual-list

A web component for rendering a long list of items without sacrificing performance.

Documentation + Live Demo

npm version

<vaadin-virtual-list></vaadin-virtual-list>

<script>
  const list = document.querySelector('vaadin-virtual-list');
  list.items = items; // An array of data items
  list.renderer = (root, list, { item, index }) => {
    root.textContent = `#${index}: ${item.name}`;
  };
</script>

Installation

Install the component:

npm i @vaadin/virtual-list

Once installed, import the component in your application:

import '@vaadin/virtual-list';

Contributing

Read the contributing guide to learn about our development process, how to propose bugfixes and improvements, and how to test your changes to Vaadin components.

License

Apache License 2.0

Vaadin collects usage statistics at development time to improve this product. For details and to opt-out, see https://github.com/vaadin/vaadin-usage-statistics.

Keywords