From 0f1957203b8285c3bd421a30bb15b048b00c167d Mon Sep 17 00:00:00 2001 From: John Glynn Date: Mon, 11 Feb 2019 10:23:34 -0600 Subject: [PATCH] Fix #8 --- README.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d838586..79cf17a 100644 --- a/README.md +++ b/README.md @@ -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); }