UNPKG

@mhmdaljefri/revogrid

Version:

Virtual reactive data grid component - RevoGrid.

7 lines (6 loc) 412 B
import { h } from '@stencil/core'; export const PADDING_DEPTH = 10; const RowRenderer = ({ rowClass, size, start, style, depth }, cells) => { return (h("div", { class: `rgRow ${rowClass || ''}`, style: Object.assign(Object.assign({}, style), { height: `${size}px`, transform: `translateY(${start}px)`, paddingLeft: depth ? `${PADDING_DEPTH * depth}px` : undefined }) }, cells)); }; export default RowRenderer;