ZkAttachmentsField

fun <T : EntityBo<T>, BT : BlobBo<BT, T>> ZkAttachmentsField(form: ZkForm<T>, comm: BlobCommInterface<BT, T>, reference: EntityId<T>? = null, blobCountMax: Int? = null, disposition: String? = null, blobClass: KClass<BT>? = null, 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.

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.