Scrollable<TItem>
ClassFor examples and usage details, see the component documentation.
View Scrollable<TItem> ComponentNamespace:
RazorConsole.ComponentsAssembly:
RazorConsole.CoreDefinition
public class Scrollable<TItem> : ComponentBase, IComponent, IHandleEvent, IHandleAfterRenderConstructors
1| Name | Type | Description |
|---|---|---|
Scrollable() | Constructor | — |
Properties
7| Name | Type | Description |
|---|---|---|
Appearance | ||
PageSize | Int32 | Number of items visible at one time (page size). |
Common | ||
ChildContent | RenderFragment<ScrollContext<TItem>> | Child content template that receives the visible items and scroll context. |
Other | ||
IsScrollbarEmbedded | Boolean | Flag that determines will scrollbar be embedded or not. |
Items | IReadOnlyList<TItem> | Provides scrollable navigation through a list of items with keyboard support. |
ScrollOffset | Int32 | Current scroll offset (index of the first visible item). |
ScrollOffsetChanged | EventCallback<Int32> | Event callback invoked when the scroll offset changes. |
Scrollbar | ScrollbarSettings | Scrollbar settings. If provided, the scrollbar is enabled. |
Methods
1| Name | Type | Description |
|---|---|---|
BuildRenderTree(RenderTreeBuilder)() | Method | — |