Interface ITableOfContentsTreeProps

Interface describing component properties.

interface ITableOfContentsTreeProps {
    activeHeading: null | TableOfContents.IHeading;
    documentType: string;
    headings: TableOfContents.IHeading[];
    onCollapseChange: (heading: TableOfContents.IHeading) => void;
    setActiveHeading: (heading: TableOfContents.IHeading) => void;
}

Properties

activeHeading: null | TableOfContents.IHeading

Currently active heading.

documentType: string

Type of document supported by the model.

List of headings to render.

onCollapseChange: (heading: TableOfContents.IHeading) => void

Collapse heading callback.

setActiveHeading: (heading: TableOfContents.IHeading) => void

Set active heading.