(options: VirtualScrollerInsertOptions<T>)
| 780 | } |
| 781 | |
| 782 | insertItems(options: VirtualScrollerInsertOptions<T>): boolean { |
| 783 | const nextEntries = this.buildEntriesAfterInsertion(options); |
| 784 | if (!nextEntries) { |
| 785 | return false; |
| 786 | } |
| 787 | |
| 788 | const currentScrollTop = this.scrollContainer.scrollTop; |
| 789 | this.applyItemEntries(nextEntries); |
| 790 | this.scrollContainer.scrollTop = currentScrollTop; |
| 791 | this.forceVisibleRangeUpdate(); |
| 792 | return true; |
| 793 | } |
| 794 | |
| 795 | /** |
| 796 | * Re-render currently visible items by key without rebuilding the whole scroller. |
no test coverage detected