Interface TocItemSublayer

A toc item that represents a sublayer.

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

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.

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