diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/common/editableList.js b/packages/node_modules/@node-red/editor-client/src/js/ui/common/editableList.js index 00666e5b4..ab35f811e 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/common/editableList.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/common/editableList.js @@ -18,7 +18,7 @@ /** * options: * - addButton : boolean|string - text for add label, default 'add' - * - buttons : array - list of custom buttons (objects with fields 'label', 'icon', 'title', 'click') + * - buttons : array - list of custom buttons (objects with fields 'id', 'label', 'icon', 'title', 'click') * - height : number|'auto' * - resize : function - called when list as a whole is resized * - resizeItem : function(item) - called to resize individual item @@ -103,6 +103,9 @@ } }); + if (button.id) { + element.attr("id", button.id); + } if (button.title) { element.attr("title", button.title); } diff --git a/packages/node_modules/@node-red/nodes/core/common/20-inject.html b/packages/node_modules/@node-red/nodes/core/common/20-inject.html index 2052a10b8..aecb20347 100644 --- a/packages/node_modules/@node-red/nodes/core/common/20-inject.html +++ b/packages/node_modules/@node-red/nodes/core/common/20-inject.html @@ -149,7 +149,20 @@