Skip to content

Commit

Permalink
Fix #8
Browse files Browse the repository at this point in the history
  • Loading branch information
John Glynn committed Feb 11, 2019
1 parent c5f7af3 commit 0f19572
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,18 @@ class MyTable extends Component {
}
}

/*
* In this example, a table controls the resizing of the local table remotely.
*/
enableResize() {
const normalRemote = ReactDOM.findDOMNode(this)
.querySelector(`#${this.bodyId}`);
const remoteTable = ReactDOM.findDOMNode(this)
.querySelector(`#${this.remoteTableId}`);
const options = this.props.resizerOptions;
options.remoteTable = normalRemote;
options.remoteTable = remoteTable;
if (!this.resizer) {
this.resizer = new ColumnResizer(
ReactDOM.findDOMNode(this)
.querySelector(`#${this.headerId}`), options);
.querySelector(`#${this.tableId}`), options);
} else {
this.resizer.reset(options);
}
Expand Down

0 comments on commit 0f19572

Please sign in to comment.