mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Add index to editableList callback signature
This commit is contained in:
parent
0d4d51fc39
commit
365d71264f
@ -17,8 +17,7 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* options:
|
* options:
|
||||||
* - addButton : boolean|string - text for add label, default 'tab'
|
* - addButton : boolean|string - text for add label, default 'add'
|
||||||
* - addable : boolean (true) - whether to show the add button
|
|
||||||
* - height : number|'auto'
|
* - height : number|'auto'
|
||||||
* - resize : function - called when list as a whole is resized
|
* - resize : function - called when list as a whole is resized
|
||||||
* - resizeItem : function(item) - called to resize individual item
|
* - resizeItem : function(item) - called to resize individual item
|
||||||
@ -128,7 +127,7 @@
|
|||||||
if (this.options.resizeItem) {
|
if (this.options.resizeItem) {
|
||||||
var that = this;
|
var that = this;
|
||||||
this.element.children().each(function(i) {
|
this.element.children().each(function(i) {
|
||||||
that.options.resizeItem($(this).find(".red-ui-editableList-item-content"));
|
that.options.resizeItem($(this).find(".red-ui-editableList-item-content"),i);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user