IFileFieldListItemProps
interface
Form & Input
Props for the list-style file item card rendered inside FileField — mirrors IFileFieldDragNDropItemProps with the same file, index, progress, icon overrides and showSize options.
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.
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.
- filerequisFile
- The native File object this list item represents.
- indexrequisnumber
- Zero-based index of the file in the selection.
- progressnumber
- Upload progress from 0 to 100.
- fileIconstring
- Override the default file type icon.
- removeIconstring
- Override the default remove icon.
- downloadIconstring
- downloadableboolean
- disabledboolean
- Disable interaction with this list item.
- readonlyboolean
- Render in read-only mode (no remove action).
- showSizeboolean | 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.
List item with progress and binary size display