Skip to content

[Discussion] [Analytical Table Cell Type]: Cell#CellInstance#CellType#value any => string limits usage #7912

@wvudako

Description

@wvudako

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 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions