Label
Um Text oder Zeichenfolge anzuzeigen, verwenden wir die Komponente, Bezeichnung.
Die Beschriftungskomponente in JUI steht für einen HTML-Code <label/>
.
Nachfolgend finden Sie ein Beispiel für das Hinzufügen einer statischen Beschriftung
const staticLabelJSON = {
"component": "label", //tells the component name
"label": "This is an example label", // the string to be displayed
}
Unter JSON wird eine dynamische Zeichenfolge angezeigt:
const labelJSON = {
"component": "label", //tells the component name
"label": "@name", // the variable storing the text to be displayed
},
Die gerenderte Bezeichnung sieht wie folgt aus:
recommendation-more-help
11125c99-e1a1-4369-b5d7-fb3098b9b178