IFileFieldDragNDropItemProps

interface
Form & Input

Props for the individual drag-and-drop file card rendered inside the FileField dropzone — exposes the file object, its index, upload progress, icon overrides, and disabled/readonly/showSize flags.

TypeScript

Définition

La définition TypeScript de l'interface telle que trouvée dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.

typescript

Héritage

Hérite de

Interfaces parentes dont celle-ci hérite. Leurs propriétés sont disponibles pour tout consommateur de cette interface.

API

Propriétés

Chaque propriété déclarée par cette interface, avec son type, son caractère optionnel et sa valeur par défaut.

file
requis
File
The native File object this card represents.
index
requis
number
Zero-based index of the file in the selection.
progress
number
Upload progress from 0 to 100. Drives an internal OrigamProgress bar.
fileIcon
string
Override the default file icon shown on the card.
removeIcon
string
Override the default remove/delete icon.
downloadIcon
string
downloadable
boolean
disabled
boolean
Disable interaction with this file card.
readonly
boolean
Render the card in a read-only state (no remove action).
showSize
boolean | 1000 | 1024
Display the file size. Pass 1000 for SI units (kB) or 1024 for binary units (KiB).

Écosystème

Utilisé par

Composants et composables qui étendent ou consomment cette interface.

Usage

Exemples

Extraits de code prêts à coller utilisant cette interface.

Dropzone item with progress and size

vue