ratatui_toolkit/widgets/markdown_widget/widget/constructors/
selection_active.rs

1//! Set whether selection mode is active.
2
3use crate::widgets::markdown_widget::widget::MarkdownWidget;
4
5impl<'a> MarkdownWidget<'a> {
6    /// Set whether selection mode is active.
7    ///
8    /// This affects the mode displayed in the statusline (Normal vs Drag).
9    ///
10    /// # Arguments
11    ///
12    /// * `active` - Whether selection is active
13    ///
14    /// # Returns
15    ///
16    /// Self for method chaining.
17    pub fn selection_active(mut self, active: bool) -> Self {
18        self.selection_active = active;
19        self
20    }
21}