1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Add editableList api doc comments

This commit is contained in:
Nick O'Leary 2016-11-23 10:58:19 +00:00
parent fa9a7e725b
commit 1e234fcb73

View File

@ -27,6 +27,9 @@
* - removable : boolean - whether to display delete button on items * - removable : boolean - whether to display delete button on items
* - addItem : function(row,index,itemData) - when an item is added * - addItem : function(row,index,itemData) - when an item is added
* - removeItem : function(itemData) - called when an item is removed * - 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: * methods:
* - addItem(itemData) * - addItem(itemData)
* - removeItem(itemData) * - removeItem(itemData)
@ -34,6 +37,9 @@
* - height(height) * - height(height)
* - items() * - items()
* - empty() * - empty()
* - filter(filter)
* - sort(sort)
* - length()
*/ */
$.widget( "nodered.editableList", { $.widget( "nodered.editableList", {
_create: function() { _create: function() {