GeoLeaf Core API - v3.0.0
    Preparing search index...

    Fullscreen image lightbox with optional gallery navigation (arrows, counter, keyboard, focus trap). Implements Lightbox.

    A single instance is reused across opens; LightboxManager.open first closes any active lightbox. The exported lightbox singleton is the one wired by attachGalleryEvents.

    Implements

    • Lightbox
    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    onIndexChange: ((index: number) => void) | null = null

    Hook fired with the new index on every in-lightbox navigation step.

    Methods

    • Opens a lightbox showing imageSrc. When galleryImages holds more than one URL, arrow navigation and a counter are enabled; startIndex selects the initial slide (falling back to the position of imageSrc).

      Parameters

      • imageSrc: string

        URL of the image to display.

      • OptionalgalleryImages: string[]

        Optional gallery URLs enabling navigation.

      • OptionalstartIndex: number

        Optional initial index into galleryImages.

      Returns void