You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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"
}
The text was updated successfully, but these errors were encountered:
ddecrulle
changed the title
Text Component
Enhancing Polymorphism with Text Display
May 2, 2024
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:The text was updated successfully, but these errors were encountered: