GeoLeaf Core API - v3.0.0
    Preparing search index...
    • Builds the profile selector.

      Parameters

      • profiles: AvailableProfileEntry[]

        Profiles to offer (caller guarantees ≥ 2).

      • activeId: string | null

        Currently active profile id, reflected as the selected option.

      • onSwitch: (id: string) => void

        Called with the chosen id when it differs from activeId.

      Returns HTMLElement

      The container element, ready to insert.