Replies: 1 comment
-
|
Hi @wvudako Thanks for raising this! I converted this issue to a GitHub Discussion, as it looks more like a general discussion than a dedicated bug report or feature request. I’ll create issues if any arise from the discussion. It's not entirely clear to me how you’re passing the The Usually, the "CellRenderer" receives the entire table instance object, including the current const columns = [
{
Header: 'ObjectStatus',
accessor: 'os',
Cell: (props: AnalyticalTableCellInstance) => {
const { value, row } = props;
return <ObjectStatus state={value}>{row.original.osText}</ObjectStatus>;
},
},
{ Header: 'Input', accessor: 'input', Cell: InputCell },
];
The |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
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:
Cell#CellInstance#CellType#value
in webcomponents-react/dist/components/AnalyticalTable/types/index.d.ts:83
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:
Beta Was this translation helpful? Give feedback.
All reactions