FixIt JavaScript API
    Preparing search index...

    Class ContentModule

    Content module — details toggle, tooltips, footnotes, SVG icons, and link guard.

    Responsibilities:

    • Attach toggle behaviour to .details elements.
    • Initialize CellTooltip on action buttons, copy buttons, and footnotes.
    • Fetch and inline SVG icons from data-svg-src attributes.
    • Set up link guard dialog for external link confirmation.
    • Re-initialize components after encrypted content is decrypted.

    Implements

    Index
    • Re-initialize content components within a target element. Useful after AJAX/pjax loads or dynamic content injection.

      Parameters

      • target: Element | Document = document

        The root element to initialize components within.

      Returns void

    • Attach toggle behaviour to .details elements.

      Parameters

      • target: Element | Document = document

        The root element to search within.

      Returns void

    • Initialize the link-guard dialog and bind click handlers on guarded links.

      Parameters

      • target: Element | Document = document

        The root element to search for guarded links.

      Returns void

    • Initialize CellTooltip on action buttons, copy buttons, and footnotes.

      Returns void