Attachment
Hide uploader
{
typeCell: 'attachment',
hasUploader: false,
...
}
Hide previewer
{
typeCell: 'attachment',
hasPreviewer: false,
...
}
Props
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
isDisplayCloseBtn | bool | No | true | If false, the Cancel button is not displayed. And the change are automatically passed to the VirtualTable state. |
filesDropperProps | object | No | Extends the FileDropper components. Avoid using the onChange and files props. | |
hasPreviewer | bool | No | true | If false, the previewer badge is hidden. |
hasUploader | bool | No | true | If false, the paperclip button used to open the uploader is hidden. |
onSubmit | func | Yes | Called when the submit button is clicked. It receives the cell infos, added files list and deleted files list. If the onSubmit function returns an array, it'll be passed to the onChange callback. |
filesDropperProps override
The filesDropperProps property overrides the onAddFiles and onRemoveFile to pass the Cell object as the first argument.
interface onAddFiles {
(cell: Cell, files: Files[]): void;
}
interface onRemoveFile {
(cell: Cell, file: File): void;
}