Skip to content

Commit

Permalink
Expose unfiltered rest prop for grid
Browse files Browse the repository at this point in the history
  • Loading branch information
implausible committed Aug 15, 2017
1 parent 86f1d57 commit 437bd5f
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions source/Grid/Grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ type Props = {
/** Either a fixed column width (number) or a function that returns the width of a column given its index. */
columnWidth: CellSize,

/** Unfiltered props for the Grid container. */
containerProps?: Object,

/** ARIA role for the cell-container. */
containerRole: string,

Expand Down Expand Up @@ -144,11 +147,6 @@ type Props = {
/** Callback invoked with information about the section of the Grid that was just rendered. */
onSectionRendered: (params: RenderedSection) => void,

/**
* Optional callback invoked whenever onWheel is called.
*/
onWheel?: (params: WheelEvent) => void,

/**
* Number of columns to render before/after the visible section of the grid.
* These columns can help for smoother scrolling on touch devices or browsers that send scroll events infrequently.
Expand Down Expand Up @@ -854,12 +852,12 @@ export default class Grid extends React.PureComponent {
autoHeight,
autoWidth,
className,
containerProps,
containerRole,
containerStyle,
height,
id,
noContentRenderer,
onWheel,
role,
style,
tabIndex,
Expand Down Expand Up @@ -916,12 +914,12 @@ export default class Grid extends React.PureComponent {
return (
<div
ref={this._setScrollingContainerRef}
{...containerProps}
aria-label={this.props["aria-label"]}
aria-readonly={this.props["aria-readonly"]}
className={cn("ReactVirtualized__Grid", className)}
id={id}
onScroll={this._onScroll}
onWheel={onWheel}
role={role}
style={{
...gridStyle,
Expand Down

0 comments on commit 437bd5f

Please sign in to comment.