Scrollable<TItem>

Class

For examples and usage details, see the component documentation.

View Scrollable<TItem> Component
Namespace: RazorConsole.Components
Assembly: RazorConsole.Core

Definition

public class Scrollable<TItem> : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender

Constructors

1
NameTypeDescription
Scrollable()Constructor

Properties

7
NameTypeDescription
Appearance
PageSizeInt32Number of items visible at one time (page size).
Common
ChildContentRenderFragment<ScrollContext<TItem>>Child content template that receives the visible items and scroll context.
Other
IsScrollbarEmbeddedBooleanFlag that determines will scrollbar be embedded or not.
ItemsIReadOnlyList<TItem>Provides scrollable navigation through a list of items with keyboard support.
ScrollOffsetInt32Current scroll offset (index of the first visible item).
ScrollOffsetChangedEventCallback<Int32>Event callback invoked when the scroll offset changes.
ScrollbarScrollbarSettingsScrollbar settings. If provided, the scrollbar is enabled.

Methods

1
NameTypeDescription
BuildRenderTree(RenderTreeBuilder)()Method