collapseData method
Collapses all nodes of the specified hierarchy. Please note, this method works only for CSV
and JSON
data sources.
Implementation
Future<void> collapseData(String hierarchyName) async {
WebViewController apiController = await controller.future;
await apiController
.runJavascript("webdatarocks.collapseData('$hierarchyName')");
}