Share via


Virtualize<TItem>.SpacerElement Property

Definition

Gets or sets the tag name of the HTML element that will be used as the virtualization spacer. One such element will be rendered before the visible items, and one more after them, using an explicit "height" style to control the scroll range.

The default value is "div". If you are placing the Virtualize<TItem> instance inside an element that requires a specific child tag name, consider setting that here. For example when rendering inside a "tbody", consider setting SpacerElement to the value "tr".

[Microsoft.AspNetCore.Components.Parameter]
public string SpacerElement { get; set; }
[<Microsoft.AspNetCore.Components.Parameter>]
member this.SpacerElement : string with get, set
Public Property SpacerElement As String

Property Value

Attributes

Applies to