UNPKG

@adaptabletools/adaptable

Version:

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

11 lines (10 loc) 662 B
import * as React from 'react'; /// <reference path="../../typings/.d.ts" /> import { PanelWithRow } from '../Panels/PanelWithRow'; import { Box } from 'rebass'; export const AdaptableObjectCollection = (props) => { const allowOverflow = props.allowOverflow ? 'visible' : 'auto'; return (React.createElement(Box, { style: { ...props.style }, className: "ab-ObjectCollection" }, React.createElement(PanelWithRow, { border: "none", colItems: props.colItems, headerAlign: props.headerAlign }), React.createElement("div", { className: "ab-ObjectCollection__items", style: { overflowY: allowOverflow, boxShadow: 'none' } }, props.items))); };