UNPKG

@adaptabletools/adaptable-cjs

Version:

Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements

16 lines (15 loc) 1.08 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AdaptableObjectRow = void 0; const tslib_1 = require("tslib"); const React = tslib_1.__importStar(require("react")); const Flex_1 = require("../../../components/Flex"); const clsx_1 = tslib_1.__importDefault(require("clsx")); class AdaptableObjectRow extends React.Component { render() { const colItems = this.props.colItems.map((colItem, index) => (React.createElement(Flex_1.Box, { className: `ab-AdaptableObjectRow__cell twa:px-1`, style: { flex: colItem.Size }, "data-name": "list-group-cell", key: index, title: typeof colItem.Content === 'string' ? colItem.Content : undefined }, colItem.Content))); const className = (0, clsx_1.default)('ab-AdaptableObjectRow', 'twa:p-3', 'twa:m-0', this.props.isSuspended && 'ab-AdaptableObjectRow--is-suspended', this.props.className); return (React.createElement(Flex_1.Flex, { className: className, onClick: this.props.onClick, style: this.props.style }, colItems)); } } exports.AdaptableObjectRow = AdaptableObjectRow;