pCon.basket - Plugin Development
    Preparing search index...

    Interface FileDropZoneProps

    interface FileDropZoneProps {
        accept?: FilePickerAcceptType[];
        children?: (pDragActive: boolean) => Element | null;
        disabled?: boolean;
        maxSize?: number;
        multiple?: boolean;
        noClick?: boolean;
        onFilesSelected: (
            pAccepted: SelectedFile[],
            pRejected: SelectedFile[],
        ) => void;
        onGetClassName?: (pDragActive: boolean) => string;
        ref?: Ref<FileDropZoneRef>;
        useFsAccessAPI?: boolean;
    }
    Index
    accept?: FilePickerAcceptType[]

    Array of supported file types

    children?: (pDragActive: boolean) => Element | null

    Optional callback to render child elements

    disabled?: boolean

    If true the drop zone is disabled.

    false
    
    maxSize?: number

    maximum file size in bytes

    multiple?: boolean

    If true picking multiple files is allowed.

    false
    
    noClick?: boolean

    If true the file picker will not be opnened on click.

    false
    
    onFilesSelected: (pAccepted: SelectedFile[], pRejected: SelectedFile[]) => void

    Callback to handle the selected files

    onGetClassName?: (pDragActive: boolean) => string

    Callback to retrieve the css class for the drop zone.

    ref?: Ref<FileDropZoneRef>

    React Ref for the drop zone.

    useFsAccessAPI?: boolean

    If true and supported by current browser the File Access API will be used.

    false