devaccel-data-grid
Version:
Dynamic table library.
18 lines • 651 B
JavaScript
import React from 'react';
import { SLATE } from '../types';
var DataCell = function (_a) {
var value = _a.value, columnOptions = _a.columnOptions;
var _b = columnOptions.width, width = _b === void 0 ? '180px' : _b;
return (React.createElement("div", { className: 'data-cell', style: {
padding: '0.5rem',
minWidth: width,
maxWidth: width,
width: width,
border: "1px solid ".concat(SLATE),
overflow: 'hidden',
textOverflow: 'ellipsis',
whiteSpace: 'nowrap',
} }, value));
};
export default DataCell;
//# sourceMappingURL=DataCell.js.map