标签
要显示任何文本或字符串,我们使用组件label。
JUI中的label组件表示html <label/>
。
以下是添加静态标签的示例
const staticLabelJSON = {
"component": "label", //tells the component name
"label": "This is an example label", // the string to be displayed
}
以下JSON显示一个动态字符串:
const labelJSON = {
"component": "label", //tells the component name
"label": "@name", // the variable storing the text to be displayed
},
呈现的标签将如下所示:
recommendation-more-help
11125c99-e1a1-4369-b5d7-fb3098b9b178