From ba1c213ce08488ed5db44f273e3b6313a6e529e9 Mon Sep 17 00:00:00 2001 From: Sean Landsman Date: Thu, 27 Jul 2017 08:17:15 +0100 Subject: [PATCH] Change selectAll to use refs to expand on example --- src/richGridExample/RichGridExample.jsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/richGridExample/RichGridExample.jsx b/src/richGridExample/RichGridExample.jsx index 8635f14..227750d 100644 --- a/src/richGridExample/RichGridExample.jsx +++ b/src/richGridExample/RichGridExample.jsx @@ -76,10 +76,6 @@ export default class RichGridExample extends Component { this.columnApi = params.columnApi; } - selectAll() { - this.api.selectAll(); - } - deselectAll() { this.api.deselectAll(); } @@ -156,7 +152,8 @@ export default class RichGridExample extends Component {
Grid API: - + {/* use ref to access the api in selectAll */} + @@ -186,6 +183,7 @@ export default class RichGridExample extends Component { gridTemplate = (