@theredhead — Frontend Library - v0.2.0
    Preparing search index...

    Coordinates registered media collections and fullscreen navigation state.

    Index

    Constructors

    Properties

    activeIndex: Signal<number> = ...

    The active item's zero-based position in its collection.

    activeItem: Signal<MediaGalleryItem | null> = ...

    The currently displayed item, or null when closed.

    isOpen: Signal<boolean> = ...

    Whether the fullscreen gallery is open.

    Methods

    • Close the fullscreen gallery.

      Returns void

    • Return the current ordered items in a collection.

      Parameters

      • collection: string

      Returns readonly MediaGalleryItem[]

    • Move to the next item without wrapping.

      Returns void

    • Open the collection containing an item.

      Parameters

      • id: string

      Returns void

    • Move to the previous item without wrapping.

      Returns void

    • Register an item and return a cleanup function for its host directive.

      Parameters

      Returns () => void