item
inline fun item(url: String, description: String? = null, spoiler: Boolean = false, block: InlineMediaGalleryItem.() -> Unit = {})(source)
Add an item to this gallery, see MediaGalleryItem.fromUrl.
Parameters
url
The URL of the image to display
description
Known as an "alternative text", must not exceed MAX_DESCRIPTION_LENGTH characters
spoiler
Hides the item until the user clicks on it
block
Lambda allowing further configuration
inline fun item(file: FileUpload, description: String? = null, spoiler: Boolean = false, block: InlineMediaGalleryItem.() -> Unit = {})(source)
Add an item to this gallery, see MediaGalleryItem.fromFile.
Parameters
file
The image to display
description
Known as an "alternative text", must not exceed MAX_DESCRIPTION_LENGTH characters
spoiler
Hides the item until the user clicks on it
block
Lambda allowing further configuration