ChemPal Documentation - v1.6.0
    Preparing search index...

    Interface ProductImage

    A single product image entry: a URL plus whether it's a full-size image or a thumbnail. Full images and thumbnails are stored as separate entries rather than paired, so an unrelated thumbnail can't be mistaken for a given image's downscale.

    const image: ProductImage = { href: "https://example.com/image.jpg", type: "image" };
    const thumb: ProductImage = { href: "https://example.com/thumbnail.jpg", type: "thumbnail" };
    interface ProductImage {
        href: string;
        type: ProductImageType;
        altText?: string;
    }
    Index

    Properties

    Properties

    href: string

    The image URL.

    Whether this entry is a full-size image or a thumbnail.

    altText?: string

    Alt text for accessibility (typically only set on full images).