Virtualize<TItem>.SpacerElement Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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