formcycle 8.3.6 - JavaScript for forms
    Preparing search index...

    Interface PreviewImage

    Describes a preview image that can be displayed for an upload element.

    interface PreviewImage {
        clickAction: "none" | "download" | "fileChooser";
        deletable: boolean;
        fileName: string;
        imageSource: string;
    }
    Index

    Properties

    clickAction: "none" | "download" | "fileChooser"

    The action to perform when the image is clicked.

    deletable: boolean

    Whether to add a delete button to remove the image and clear the upload button.

    fileName: string

    File name of the selected file.

    imageSource: string

    A data URL with the image. When empty, a default image is used.