diff --git a/www/content/docs/reference/datasource-api/index.page.md b/www/content/docs/reference/datasource-api/index.page.md index dc21115b..07afc807 100644 --- a/www/content/docs/reference/datasource-api/index.page.md +++ b/www/content/docs/reference/datasource-api/index.page.md @@ -350,6 +350,33 @@ All the data items passed to this method will be inserted (in the order in the a + + +> Updates the data for the nodes specified by the node paths. + +The first parameter should be an array of objects, where each object has a `data` property (the data to update) and a `nodePath` property (the path of the node to update). + + +```tsx title="Updating an aray of tree nodes" +dataSourceApi.updateDataArrayByNodePath([ + { + data: { + fileName: 'Vacation.pdf', + sizeInKB: 1000, + }, + nodePath: ['1', '10'], + }, + { + data: { + fileName: 'Report.docx', + sizeInKB: 2000, + }, + nodePath: ['1', '11'], + }, +]); +``` + +