ratatui-toolkit 0.2.6

DEPRECATED: this crate was renamed to `ratkit`. Please migrate to `ratkit`.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Expand section method for CollapseState.

use crate::widgets::markdown_widget::state::collapse_state::CollapseState;

impl CollapseState {
    /// Expand a section.
    ///
    /// # Arguments
    ///
    /// * `section_id` - The ID of the section to expand.
    pub fn expand_section(&mut self, section_id: usize) {
        self.sections.insert(section_id, false);
    }
}