ZkImagesField

fun <T : EntityBo<T>, BT : BlobBo<BT, T>> ZkImagesField(form: ZkForm<T>, comm: BlobCommInterface<BT, T>, reference: EntityId<T>? = null, blobCountMax: Int? = null, disposition: String? = null, blobClass: KClass<BT>? = null, showMeta: Boolean = false, hideUpload: () -> Boolean = { false }, makeBlobCb: (File) -> BT? = null)

Parameters

form

The form this field belongs to.

reference

The entity to which these images belong.

blobCountMax

Maximum number of images allowed.

disposition

Disposition of images, saved to the disposition field of the image.

showMeta

When true, metadata is shown, passed to ZkImagePreview.

blobClass

The class of blob instances. When no special initialization is needed, the field can create the blobs by itself from this class.

hideUpload

Function to decide if the upload area is hidden or nor. Default returns with "false".

makeBlobCb

Callback function to make a blob instance.