ratatui_toolkit/widgets/markdown_widget/widget/constructors/toc_hovered.rs
1//! Set the TOC hovered state.
2
3use crate::widgets::markdown_widget::widget::MarkdownWidget;
4
5impl<'a> MarkdownWidget<'a> {
6 /// Set the TOC hovered state.
7 ///
8 /// When hovered, the TOC expands to show heading text.
9 ///
10 /// # Arguments
11 ///
12 /// * `hovered` - Whether the TOC is hovered
13 ///
14 /// # Returns
15 ///
16 /// Self for method chaining.
17 pub fn toc_hovered(mut self, hovered: bool) -> Self {
18 self.toc_hovered = hovered;
19 self
20 }
21}