Interface ITableOfContentsTreeProps

Interface describing component properties.

interface ITableOfContentsTreeProps {
    activeHeading: null | TableOfContents.IHeading;
    documentType: string;
    headings: TableOfContents.IHeading[];
    onCollapseChange: ((heading) => void);
    setActiveHeading: ((heading) => 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) => void)

Collapse heading callback.

Type declaration

setActiveHeading: ((heading) => void)

Set active heading.

Type declaration