File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
src/BootstrapBlazor/Components/TreeView Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 4747 @if (IsVirtualize )
4848 {
4949 <div class =" tree-root scroll is-virtual" tabindex =" 0" >
50- <Virtualize ItemSize =" RowHeight" OverscanCount =" 10 " Items =" @Rows" >
50+ <Virtualize ItemSize =" RowHeight" OverscanCount =" OverscanCount " Items =" @Rows" >
5151 @RenderRow(context)
5252 </Virtualize >
5353 </div >
Original file line number Diff line number Diff line change @@ -224,6 +224,13 @@ public partial class TreeView<TItem> : IModelEqualityComparer<TItem>
224224 [ Parameter ]
225225 public float RowHeight { get ; set ; } = 38f ;
226226
227+ /// <summary>
228+ /// Gets or sets the overscan count for virtual scrolling. Default is 10.
229+ /// </summary>
230+ /// <remarks>Effective when <see cref="IsVirtualize"/> is set to true.</remarks>
231+ [ Parameter ]
232+ public int OverscanCount { get ; set ; } = 10 ;
233+
227234 /// <summary>
228235 /// Gets or sets the toolbar content template. Default is null.
229236 /// </summary>
You can’t perform that action at this time.
0 commit comments