Interface BaseTocItem

Represents an item within the toc.

interface BaseTocItem {
    children: TocItem[];
    childrenToggleMode: ChildrenToggleMode;
    hasHiddenChildren: boolean;
    isFirstChild: boolean;
    isLastChild: boolean;
    isLeaf: boolean;
    isOpen: boolean;
    isRoot: boolean;
    listMode: ListMode;
    ref: any;
    setOpen(open): void;
    setOpenOnTree(open): void;
    type: TocItemType;
}

Hierarchy (view full)

Properties

children: TocItem[]

The children of this item.

childrenToggleMode: ChildrenToggleMode

The toggle mode for the children of this item.

hasHiddenChildren: boolean

True if the item currently has any hidden children.

isFirstChild: boolean

True if this item is the first child of its parent.

isLastChild: boolean

True if this item is the last child of its parent.

isLeaf: boolean

True if this item is a leaf (no further children).

isOpen: boolean

True if this item is currently opened (expanded).

isRoot: boolean

True if this item is the root item (no further parent).

listMode: ListMode

The list mode of this item.

ref: any

Provides access to the real object represented by the toc item.

The type of this toc item.

Methods

  • Sets the "open" (expanded) state of this toc item.

    Parameters

    • open: boolean

    Returns void

  • Sets the open state (expanded) state of this toc item and its sub tree.

    Parameters

    • open: boolean

    Returns void

Generated using TypeDoc