From ab9414d1a4bf3e8080f25a69f9eaa3da878350e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adomas=20Ven=C4=8Dkauskas?= Date: Thu, 26 Aug 2021 16:40:41 +0300 Subject: [PATCH] HTML Tree: some additional documentation --- chrome/content/zotero/itemTree.jsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/chrome/content/zotero/itemTree.jsx b/chrome/content/zotero/itemTree.jsx index 4f7c770172..7731efe55c 100644 --- a/chrome/content/zotero/itemTree.jsx +++ b/chrome/content/zotero/itemTree.jsx @@ -149,6 +149,7 @@ var ItemTree = class ItemTree extends LibraryTree { /** * Extension developers: use this to monkey-patch additional columns. See * itemTreeColumns.js for available column fields. + * @returns {Array} */ getColumns() { return Array.from(this.props.columns); @@ -2730,6 +2731,12 @@ var ItemTree = class ItemTree extends LibraryTree { } } + /** + * Returns an object describing the row data for each column. + * The keys are column dataKey properties and the entries are the corresponding data. + * @param index {Integer} the row index + * @returns {Object} + */ _getRowData = (index) => { var treeRow = this.getRow(index); if (!treeRow) {