Etichetta
Per visualizzare qualsiasi testo o stringa, utilizziamo il componente, etichetta.
Il componente etichetta in JUI rappresenta un html <label/>
.
Di seguito è riportato un esempio per aggiungere un’etichetta statica
const staticLabelJSON = {
"component": "label", //tells the component name
"label": "This is an example label", // the string to be displayed
}
Sotto JSON viene visualizzata una stringa dinamica:
const labelJSON = {
"component": "label", //tells the component name
"label": "@name", // the variable storing the text to be displayed
},
L’etichetta di cui è stato eseguito il rendering sarà simile alla seguente:
recommendation-more-help
11125c99-e1a1-4369-b5d7-fb3098b9b178