mirror of
https://github.com/ratatui/ratatui.git
synced 2025-10-02 23:35:49 +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
|
/// └─────────── begin
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
|
/// # Important
|
||||||
|
///
|
||||||
|
/// You must specify the [`ScrollbarState::content_length`] before rendering the `Scrollbar`, or
|
||||||
|
/// else the `Scrollbar` will render blank.
|
||||||
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
|
Loading…
x
Reference in New Issue
Block a user