Zk Blob Field
fun <T : EntityBo<T>, BT : BlobBo<BT, T>> ZkBlobField(form: ZkForm<T>, comm: BlobCommInterface<BT, T>, reference: EntityId<T>? = null, blobCountMax: Int? = null, disposition: String? = null, blobClass: KClass<BT>? = null, hideUpload: () -> Boolean = { false }, makeBlobCb: (File) -> BT? = null)
Content copied to clipboard
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.
hideUpload
Function to decide if the upload area is hidden or nor. Default returns with "false".
makeBlobCb
Callback function to make a blob instance.