@ui5/webcomponents-react
Version:
React Wrapper for UI5 Web Components and additional components
21 lines • 482 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
export const Cell = ({
cell: {
value = '',
isGrouped
},
column,
row,
webComponentsReactProperties
}) => {
let cellContent = `${value ?? ''}`;
if (isGrouped) {
cellContent += ` (${row.subRows.length})`;
}
return /*#__PURE__*/_jsx("span", {
title: cellContent,
className: webComponentsReactProperties.classes.tableText,
"data-column-id-cell-text": column.id,
children: cellContent
});
};