class RatatuiRuby::Scrollbar
Visual scroll indicator.
A Scrollbar widget that can be oriented vertically or horizontally. It displays a track and a thumb to indicate the current scroll position relative to the total content length.
Fields
content_length-
Total length of the content (Integer).
position-
Current scroll position (Integer).
orientation-
:verticalor:horizontal(Symbol, default::vertical). thumb_symbol-
The character used for the scrollbar thumb (String, default: “█”).
block-
An optional
Blockto wrap the scrollbar.
Public Class Methods
Source
# File lib/ratatui_ruby/schema/scrollbar.rb, line 29 def initialize(content_length:, position:, orientation: :vertical, thumb_symbol: "█", block: nil) super end
content_length-
Total length of the content (Integer).
position-
Current scroll position (Integer).
orientation-
:verticalor:horizontal(Symbol, default::vertical). thumb_symbol-
The character used for the scrollbar thumb (String, default: “█”).
block-
An optional
Blockto wrap the scrollbar.
Calls superclass method