RichBlocksBuilder

Builder of a List of RichBlocks - the root of the rich message DSL. Text-bearing and container blocks have their own DSL functions; file/cell-heavy blocks (media, collage, slideshow, table, map) can be appended with add / unary plus.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun add(block: RichBlock)

Appends an already built RichBlock.

Link copied to clipboard
fun anchor(name: String)
Link copied to clipboard
fun blockQuotation(credit: RichText? = null, block: RichBlocksBuilder.() -> Unit)
Link copied to clipboard
Link copied to clipboard
fun details(summary: RichText, isOpen: Boolean? = null, block: RichBlocksBuilder.() -> Unit)
fun details(summary: String, isOpen: Boolean? = null, block: RichBlocksBuilder.() -> Unit)
Link copied to clipboard
fun divider()
Link copied to clipboard
fun footer(block: RichTextBuilder.() -> Unit)
fun footer(text: String)
Link copied to clipboard
fun heading(level: Int, block: RichTextBuilder.() -> Unit)
fun heading(text: String, level: Int)
Link copied to clipboard
fun list(block: RichBlockListBuilder.() -> Unit)
Link copied to clipboard
Link copied to clipboard
fun paragraph(block: RichTextBuilder.() -> Unit)
fun paragraph(text: String)
Link copied to clipboard
fun preformatted(text: String, language: String? = null)
Link copied to clipboard
fun pullQuotation(credit: RichText? = null, block: RichTextBuilder.() -> Unit)
Link copied to clipboard
fun thinking(block: RichTextBuilder.() -> Unit)
fun thinking(text: String)
Link copied to clipboard
operator fun RichBlock.unaryPlus()

Appends an already built RichBlock.