ratatui_toolkit/widgets/markdown_widget/widget/constructors/show_scrollbar.rs
1//! Enable or disable the scrollbar.
2
3use crate::widgets::markdown_widget::widget::MarkdownWidget;
4
5impl<'a> MarkdownWidget<'a> {
6 /// Enable or disable the scrollbar.
7 ///
8 /// # Arguments
9 ///
10 /// * `show` - Whether to show the scrollbar
11 ///
12 /// # Returns
13 ///
14 /// Self for method chaining.
15 pub fn show_scrollbar(mut self, show: bool) -> Self {
16 self.show_scrollbar = show;
17 self
18 }
19}