Lumagrid
    Preparing search index...

    Function WidgetContainer

    • WidgetContainer runs data through the transform pipeline and provides the result to its children via a render prop. When width or height are CSS strings, a ResizeObserver measures the container and passes pixel dimensions to children.

      Parameters

      Returns ReactElement

      <WidgetContainer data={rawRows} transforms={[flatten, groupBy('region')]}>
      {(data, width, height) => (
      <ViewSwitcher views={[{ id: 'bar' }, { id: 'table' }]} data={data} width={width} height={height} />
      )}
      </WidgetContainer>