* Render using virtual scrolling (large folders)
()
| 83 | * Render using virtual scrolling (large folders) |
| 84 | */ |
| 85 | renderVirtualized() { |
| 86 | this.container.classList.add("virtual-scroll"); |
| 87 | |
| 88 | this.virtualList = new VirtualList(this.container, { |
| 89 | itemHeight: ITEM_HEIGHT, |
| 90 | buffer: 15, |
| 91 | renderItem: (entry, recycledEl) => |
| 92 | this.createEntryElement(entry, recycledEl), |
| 93 | }); |
| 94 | |
| 95 | this.virtualList.setItems(this.entries); |
| 96 | } |
| 97 | |
| 98 | /** |
| 99 | * Create DOM element for a file/folder entry |
no test coverage detected