@platform/ui.datagrid
Version:
Isolated tabular DataGrid.
22 lines (21 loc) • 585 B
JavaScript
import * as React from 'react';
import * as ReactDOMServer from 'react-dom/server';
import { COLORS, css } from '../common';
const styles = {
header: css({}),
cell: {
base: css({
position: 'relative',
pointerEvents: 'none',
}),
value: css({ color: COLORS.BLUE, fontSize: 14 }),
},
};
export function renderHeader(args) {
const { col } = args;
const el = React.createElement("div", Object.assign({}, styles.header),
"col: ",
col);
const html = ReactDOMServer.renderToString(el);
return html;
}