UNPKG

terra-table

Version:

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

9 lines (7 loc) 348 B
/** * 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 */ const hasColumnActions = (columns) => (!!columns.find(column => column.action)); export default hasColumnActions;