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, 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.

makeBlobCb

Callback function to make a blob instance.