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
//! Constructor for ExpandableState.

use crate::widgets::markdown_widget::state::expandable_state::ExpandableState;
use std::collections::HashMap;

impl ExpandableState {
    /// Create a new expandable state with defaults.
    pub fn new() -> Self {
        Self {
            content: HashMap::new(),
            default_max_lines: 3,
        }
    }
}