Raxol.Core.Renderer.View.Components.Scroll (Raxol v2.0.1)
View SourceHandles scrollable views for the Raxol view system. Provides viewport management, scrollbar rendering, and content scrolling.
Summary
Functions
Calculates the layout of a scrollable view.
Creates a new scrollable view.
Updates the scroll offset of a view.
Functions
Calculates the layout of a scrollable view.
Creates a new scrollable view.
Options
:viewport- Viewport size {width, height}:offset- Initial scroll offset {x, y}:scrollbars- Whether to show scrollbars (boolean):fg- Foreground color:bg- Background color
Examples
Scroll.new(content, viewport: {80, 24})
Scroll.new(content, offset: {0, 10}, scrollbars: true)
Updates the scroll offset of a view.