AG-420 Improve React implementation

This commit is contained in:
Sean Landsman
2017-05-25 19:02:14 +01:00
parent 587af2e888
commit 1b3fc21107
84 changed files with 850 additions and 30 deletions

View File

@@ -0,0 +1,26 @@
import React, {Component} from "react";
export default class ClickableRenderer extends Component {
constructor(props) {
super(props);
this.state = {
cell: {
row: this.props.value,
col: this.props.colDef.headerName
}
};
this.clicked = this.clicked.bind(this);
}
clicked() {
console.log("Child Cell Clicked: " + JSON.stringify(this.state.cell));
}
render() {
return (
<button style={{height: 21}} onClick={this.clicked} >Click Me</button>
);
}
}