UNPKG

terra-table

Version:

The Terra Table component provides user a way to display data in an accessible table format.

17 lines (16 loc) 528 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; /** * The method that checks if at least one of the columns has actions object with two parameters - text label and onCall method. * @param {PropTypes.arrayOf(columnShape)} columns - array of data grid columns * @returns bool */ var hasColumnActions = function hasColumnActions(columns) { return !!columns.find(function (column) { return column.action; }); }; var _default = exports.default = hasColumnActions;