iya-sts
    Preparing search index...

    The collapsible sections of a navigation column. A static utility class; it holds no state — the reader's choice is the runtime's.

    Index
    • The sections' rules for the wide layout.

      Parameters

      • accent: string

        the brand colour: hover, focus and the current section

      • muted: string

        a heading's colour otherwise

      • inset: number

        the column card's left padding, in px, which the current section's rule sits in

      Returns string

      the CSS

    • Escapes text for HTML.

      Parameters

      • value: unknown

        the text

      Returns string

      the escaped text

    • The section to draw open.

      Parameters

      • chosen: string

        the runtime's choice so far, null before any drawing

      • holding: string

        the key of the section holding the page, '' for none

      Returns string

      the choice from here on

    • The sections' rules inside the narrow layout's media query.

      Parameters

      • accent: string

        the brand colour

      • minWidth: string

        a section's least width

      Returns string

      the CSS, to be placed inside the caller's @media

    • Draws one section.

      Parameters

      • section: any

        group (the shared name), key (its data-section), current (it holds the page), open, title (the heading, as HTML), what (the heading's tooltip, as text) and items (the <li>s, as HTML)

      Returns string

      the <details> as HTML

    • Answers a toggle on the column: the reader's choice after it.

      Parameters

      • doc: any

        the document, for the other open sections

      • selector: string

        selects this column's open sections

      • target: any

        the element the toggle was fired at

      • chosen: string

        the reader's choice before it

      Returns string

      the reader's choice after it (unchanged for any other element)