Enhancing Polymorphism with Text Display
- Dominant language
- Java
- Stars
- 17
- Forks
- 26
- PR merge metrics
- No merged PRs in 30d
Description
### 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:
```json
{
"label": {
"value": "\"The VALUE\"",
"type": "VTL|MD"
}
}
```
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:
```json
{
"componentType": "Text",
"label": {
"value": "THE VALUE",
"type": "TXT" // We also support VTL and MD
},
"conditionFilter": {
"value": "true",
"type": "VTL"
},
"id": "id"
}
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.