Section

@SerialName(value = "section")
data class Section @JvmOverloads constructor(val mode: CardModule.SectionMode = SectionMode.LEFT, val text: CardElement, val accessory: CardElement? = null) : CardModule(source)

内容模块

作用说明: 结构化的内容,显示文本+其它元素。

说明:

e.g.

{
"type": "section",
"mode" : "left|right", //accessory在左侧还是在右侧
"text" : {
"type": "plain-text|kmarkdown|paragraph",
//...
},
"accessory": {
"type": "image|button",
//...
}
}

Constructors

Link copied to clipboard
constructor(mode: CardModule.SectionMode = SectionMode.LEFT, text: CardElement, accessory: CardElement? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val accessory: CardElement? = null
Link copied to clipboard

accessory在左侧还是在右侧

Link copied to clipboard