Skip to content

@serenity-is/corelib / ImageUploadEditorOptions

Interface: ImageUploadEditorOptions

Defined in: src/ui/editors/uploadeditors.tsx:76

Options for the ImageUploadEditor.

Extends

Properties

allowNonImage?

optional allowNonImage: boolean

Defined in: src/ui/helpers/uploadhelper.tsx:412

Whether non-image files are allowed.

Inherited from

FileUploadEditorOptions.allowNonImage


displayFileName?

optional displayFileName: boolean

Defined in: src/ui/editors/uploadeditors.tsx:64

Whether to display the original file name.

Inherited from

FileUploadEditorOptions.displayFileName


dropHint?

optional dropHint: string

Defined in: src/ui/editors/uploadeditors.tsx:60

The text of the drop box while the editor has no file, in place of "Drop a file here or click to choose" (or "Drop files here..." for a multiple editor), as a text or a local text key.

Inherited from

FileUploadEditorOptions.dropHint


dropHintDetail?

optional dropHintDetail: string

Defined in: src/ui/editors/uploadeditors.tsx:62

A line under the text of the drop box, e.g. the kind or the size of the files, as a text or a local text key.

Inherited from

FileUploadEditorOptions.dropHintDetail


maxHeight?

optional maxHeight: number

Defined in: src/ui/helpers/uploadhelper.tsx:400

The maximum image height.

Inherited from

FileUploadEditorOptions.maxHeight


maxSize?

optional maxSize: number

Defined in: src/ui/helpers/uploadhelper.tsx:408

The maximum file size in bytes.

Inherited from

FileUploadEditorOptions.maxSize


maxWidth?

optional maxWidth: number

Defined in: src/ui/helpers/uploadhelper.tsx:392

The maximum image width.

Inherited from

FileUploadEditorOptions.maxWidth


minHeight?

optional minHeight: number

Defined in: src/ui/helpers/uploadhelper.tsx:396

The minimum image height.

Inherited from

FileUploadEditorOptions.minHeight


minSize?

optional minSize: number

Defined in: src/ui/helpers/uploadhelper.tsx:404

The minimum file size in bytes.

Inherited from

FileUploadEditorOptions.minSize


minWidth?

optional minWidth: number

Defined in: src/ui/helpers/uploadhelper.tsx:388

The minimum image width.

Inherited from

FileUploadEditorOptions.minWidth


originalNameProperty?

optional originalNameProperty: string

Defined in: src/ui/helpers/uploadhelper.tsx:416

The name of the property holding the original file name.

Inherited from

FileUploadEditorOptions.originalNameProperty


toolbar?

optional toolbar: boolean

Defined in: src/ui/editors/uploadeditors.tsx:55

Whether the editor shows its toolbar with the select file (and delete) buttons, as it did before, instead of a drop box while it has no file and buttons by its files. By default it shows it only when its toolbar has buttons of its own besides the built-in ones, e.g. ones that a subclass adds in getToolButtons. The default can be changed for all the editors with FileUploadEditor.defaults.toolbar and MultipleFileUploadEditor.defaults.toolbar.

Inherited from

FileUploadEditorOptions.toolbar


uploadIntent?

optional uploadIntent: string

Defined in: src/ui/editors/uploadeditors.tsx:66

Upload intent for the upload service.

Inherited from

FileUploadEditorOptions.uploadIntent


uploadUrl?

optional uploadUrl: string

Defined in: src/ui/editors/uploadeditors.tsx:68

Upload URL.

Inherited from

FileUploadEditorOptions.uploadUrl


urlPrefix?

optional urlPrefix: string

Defined in: src/ui/editors/uploadeditors.tsx:70

URL prefix for file links.

Inherited from

FileUploadEditorOptions.urlPrefix