UNPKG

fixed-react-data-grid-custom

Version:

Excel-like grid component built with React, with editors, keyboard navigation, copy & paste, and the like

12 lines 524 B
import React from 'react'; import { CellExpand } from '../common/enums'; export default function CellExpander(_a) { var expanded = _a.expanded, onCellExpand = _a.onCellExpand; function handleCellExpand(e) { e.stopPropagation(); onCellExpand(); } return (React.createElement("div", { className: "rdg-cell-expand" }, React.createElement("span", { onClick: handleCellExpand }, expanded ? CellExpand.DOWN_TRIANGLE : CellExpand.RIGHT_TRIANGLE))); } //# sourceMappingURL=CellExpander.js.map