mirror of
https://github.com/ratatui/ratatui.git
synced 2025-09-28 05:21:23 +00:00
docs: add note about scrollbar state content length (#1077)
This commit is contained in:
parent
f4637d40c3
commit
e95230beda
@ -29,6 +29,11 @@ use crate::{prelude::*, symbols::scrollbar::*};
|
||||
/// └─────────── begin
|
||||
/// ```
|
||||
///
|
||||
/// # Important
|
||||
///
|
||||
/// You must specify the [`ScrollbarState::content_length`] before rendering the `Scrollbar`, or
|
||||
/// else the `Scrollbar` will render blank.
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
/// ```rust
|
||||
|
Loading…
x
Reference in New Issue
Block a user