ratatui-toolkit 0.2.6

DEPRECATED: this crate was renamed to `ratkit`. Please migrate to `ratkit`.
Documentation
//! Set the TOC scroll offset.

use crate::widgets::markdown_widget::widget::MarkdownWidget;

impl<'a> MarkdownWidget<'a> {
    /// Set the TOC scroll offset.
    ///
    /// # Arguments
    ///
    /// * `offset` - The scroll offset for the TOC list
    ///
    /// # Returns
    ///
    /// Self for method chaining.
    pub fn toc_scroll_offset(mut self, offset: usize) -> Self {
        self.toc_scroll_offset = offset;
        self
    }
}