How to use the react-virtualized.CellMeasurer function in react-virtualized

To help you get started, we’ve selected a few react-virtualized examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github scaleflex / filerobot-uploader / dist / components / VirtualizedImagesGrid.js View on Github external
_this._cellRenderer = function (_ref) {
      var index = _ref.index,
          key = _ref.key,
          parent = _ref.parent,
          style = _ref.style;
      var _this$props = _this.props,
          list = _this$props.list,
          cellContent = _this$props.cellContent;
      var columnWidth = _this.state.columnWidth;

      var item = list[index];

      return React.createElement(
        _reactVirtualized.CellMeasurer,
        { cache: _this._cache, index: index, key: key, parent: parent },
        cellContent({ style: style, columnWidth: columnWidth, item: item, index: index, key: key })
      );
    };