-
Notifications
You must be signed in to change notification settings - Fork 106
Description
I hope this is the right place and format to address my design concerns, feel free to move or reformat it to better suit your workflow
Prerequisites:
- the property
Cell#CellInstance#CellType#value
in webcomponents-react/dist/components/AnalyticalTable/types/index.d.ts:83 - documentation
https://www.sap.com/design-system/fiori-design-web/v1-136/ui-elements/analytical-table-alv/#components
https://ui5.github.io/webcomponents-react/v2/?path=/docs/data-display-analyticaltable--docs
The change:
Upgraded from webcomponents 2.13 to 2.15 introduced the change of the cell value being string instead of any.
Issue:
We would like to provide more information than a simple string to the CellRenderer from the DTO of the row/cell to change styling or behaviour. This is not specifically allowed or disallowed, but not advised according to the doc, but the examples are limited to strings, object status (without extra text) and input elements.
Examples:
For the object status you might want to display another text than the actual severity (ValueState).
We do not use inline editing, but I would assume input elements would require more than just a string.
Displaying a standard browser link (that needs text and URL) shouldnt be impossible
Discussion / idea:
One could serialize information into the value but I assume thats not the idea
The doc states that you should only use the given elements to prevent styling issues and that makes sense, but the cell types seem to limited.
Having styled text should in most cases not be a problem styling wise, like coloring, but as stated above its hard to open up too many possibilities to break the intented UI design
Notes:
- Since JS/TS does not actually prevent putting other types in that property this is actually not a breaking change for us and just leads to some ugly casts