fixed-react-data-grid-custom
Version:
Excel-like grid component built with React, with editors, keyboard navigation, copy & paste, and the like
17 lines • 766 B
JavaScript
import { __assign } from "tslib";
import React from 'react';
import CellAction from './CellAction';
export default function CellActions(_a) {
var cellMetaData = _a.cellMetaData, column = _a.column, rowData = _a.rowData;
if (cellMetaData.getCellActions) {
var cellActionButtons = cellMetaData.getCellActions(column, rowData);
if (cellActionButtons && cellActionButtons.length > 0) {
var actionButtons = cellActionButtons.map(function (action, index) {
return React.createElement(CellAction, __assign({ key: index, isFirst: index === 0 }, action));
});
return React.createElement(React.Fragment, null, actionButtons);
}
}
return null;
}
//# sourceMappingURL=CellActions.js.map