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

    Interface WixMediaItem

    A product media item — an image or video shown in the product gallery.

    interface WixMediaItem {
        id: string;
        url: string;
        fullUrl: string;
        index: number;
        mediaType: string;
        width: number;
        height: number;
        title: null | string;
        altText: null | string;
        videoType: null | string;
        videoFiles: WixVideoFile[];
    }
    Index

    Properties

    id: string

    Unique identifier for the media item

    url: string

    Relative or partial media URL

    fullUrl: string

    Fully-qualified media URL

    index: number

    Display order of the media item

    mediaType: string

    Media type (e.g. "image", "video")

    width: number

    Pixel width of the media

    height: number

    Pixel height of the media

    title: null | string

    Optional media title

    altText: null | string

    Optional alternative text for accessibility

    videoType: null | string

    Video type, when the media item is a video

    videoFiles: WixVideoFile[]

    Encoded video files, when the media item is a video