Skip to main content

Attachment

Hide uploader

{
typeCell: 'attachment',
hasUploader: false,
...
}

Hide previewer

{
typeCell: 'attachment',
hasPreviewer: false,
...
}

Props

NameTypeRequiredDefaultDescription
isDisplayCloseBtnboolNotrueIf false, the Cancel button is not displayed. And the change are automatically passed to the VirtualTable state.
filesDropperPropsobjectNoExtends the FileDropper components. Avoid using the onChange and files props.
hasPreviewerboolNotrueIf false, the previewer badge is hidden.
hasUploaderboolNotrueIf false, the paperclip button used to open the uploader is hidden.
onSubmitfuncYesCalled 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;
}