Section
data class Section @JvmOverloads constructor(val mode: CardModule.SectionMode = SectionMode.LEFT, val text: CardElement, val accessory: CardElement? = null) : CardModule(source)
内容模块
作用说明: 结构化的内容,显示文本+其它元素。
说明:
text 可以为 plain-text, kmarkdown 或者 paragraph.
button
不能放置在左侧mode 代表 accessory 是放置在左侧还是在右侧
e.g.
{
"type": "section",
"mode" : "left|right", //accessory在左侧还是在右侧
"text" : {
"type": "plain-text|kmarkdown|paragraph",
//...
},
"accessory": {
"type": "image|button",
//...
}
}
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(mode: CardModule.SectionMode = SectionMode.LEFT, text: CardElement, accessory: CardElement? = null)