Skip to content

Instantly share code, notes, and snippets.

@maxkoretskyi
Created April 10, 2019 12:01
Show Gist options
  • Save maxkoretskyi/01114eefc174ae5c457de3bad2f69eda to your computer and use it in GitHub Desktop.
Save maxkoretskyi/01114eefc174ae5c457de3bad2f69eda to your computer and use it in GitHub Desktop.
<AgGridReact
// useful for accessing the component directly via ref
ref="agGrid"
// these are simple attributes, not bound to any state or prop
rowSelection="multiple"
// these are bound props, so can use anything in React state or props
columnDefs={this.props.columnDefs}
showToolPanel={this.state.showToolPanel}
// this is a callback
isScrollLag={this.myIsScrollLagFunction.bind(this)}
// these are registering event callbacks
onCellClicked={this.onCellClicked.bind(this)}"
onColumnResized={this.onColumnEvent.bind(this)}"
onGridReady={this.onGridReady.bind(this)}" // inside onGridReady, you receive the grid APIs if you want them
/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment