We've introduced a new component type, componentType: Text, in Lunatic to improve polymorphism and simplify text display within components. This component should be utilized when we only need to display text within Lunatic components.
Current State:
Currently, in the Table component, text can be displayed by adding the following structure in the body:
This approach lacks polymorphism and can lead to inconsistency in component usage.
Proposed Solution:
We propose leveraging the new componentType: Text for displaying text in both Table and RosterForLoop components. The updated structure would look like this:
{
"componentType": "Text",
"label": {
"value": "THE VALUE",
"type": "TXT" // We also support VTL and MD
},
"conditionFilter": {
"value": "true",
"type": "VTL"
},
"id": "id"
}
Problem Statement:
We've introduced a new component type,
componentType: Text
, in Lunatic to improve polymorphism and simplify text display within components. This component should be utilized when we only need to display text within Lunatic components.Current State:
Currently, in the Table component, text can be displayed by adding the following structure in the body:
This approach lacks polymorphism and can lead to inconsistency in component usage.
Proposed Solution:
We propose leveraging the new
componentType: Text
for displaying text in both Table and RosterForLoop components. The updated structure would look like this: