FixIt JavaScript API
    Preparing search index...

    Class TocModule

    Table of Contents module — TOC scroll tracking, active state sync, and dialog.

    Responsibilities:

    • Render TOC from template and sync layout state.
    • Clear TOC containers on fixit:re-encrypt.
    • Move TOC node to the correct container (static, auto, or drawer) on init.
    • Track scroll position and highlight the active heading in all TOC containers.
    • Initialize mobile TOC drawer dialog and its open/close handlers.
    • Clone TOC nodes to detach APlayer event listeners.

    Implements

    Index