From 1e234fcb736cf3b123edf935e0648579430b1e7f Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Wed, 23 Nov 2016 10:58:19 +0000 Subject: [PATCH] Add editableList api doc comments --- editor/js/ui/common/editableList.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/editor/js/ui/common/editableList.js b/editor/js/ui/common/editableList.js index 87939dca5..db1d861f0 100644 --- a/editor/js/ui/common/editableList.js +++ b/editor/js/ui/common/editableList.js @@ -27,6 +27,9 @@ * - removable : boolean - whether to display delete button on items * - addItem : function(row,index,itemData) - when an item is added * - removeItem : function(itemData) - called when an item is removed + * - filter : function(itemData) - called for each item to determine if it should be shown + * - sort : function(itemDataA,itemDataB) - called to sort items + * - scrollOnAdd : boolean - whether to scroll to newly added items * methods: * - addItem(itemData) * - removeItem(itemData) @@ -34,6 +37,9 @@ * - height(height) * - items() * - empty() + * - filter(filter) + * - sort(sort) + * - length() */ $.widget( "nodered.editableList", { _create: function() {