UNPKG

@enykeev/react-virtualized

Version:

React components for efficiently rendering large, scrollable lists and tabular data

24 lines (20 loc) 520 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = defaultCellRenderer; /*:: import type {CellRendererParams} from './types';*/ /** * Default cell renderer that displays an attribute as a simple string * You should override the column's cellRenderer if your data is some other type of object. */ function defaultCellRenderer(_ref) /*: string*/ { var cellData = _ref.cellData; if (cellData == null) { return ''; } else { return String(cellData); } }