From c51b518cc6d5db4e23adea097a0ece23fae6a6ef Mon Sep 17 00:00:00 2001 From: Vaishnav Nair Date: Sat, 10 Sep 2022 20:01:02 +0530 Subject: [PATCH] [chores] Improve docs --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 2d524f1a..481cfe2a 100644 --- a/README.md +++ b/README.md @@ -516,6 +516,14 @@ Demo is [here](https://openwisp.github.io/netjsongraph.js/examples/netjson-dateP Parse paginated response from the server. It accepts `JSONParam` as a parameter. It uses cursor-based pagination by default. If you want to parse from the server that uses some other pagination logic, you can override this method using `setUtils` method. + ```JS + graph.setUtils({ + paginatedDataParse: async function(JSONParam){ + // Implement your custom logic here + } + }); + ``` + - `isObject` Check if the param is object.