interactive

This commit is contained in:
Shaun Johnston
2025-12-16 09:53:07 +10:00
parent 7ba7721558
commit c6e229c1ac
+2 -2
View File
@@ -84,12 +84,12 @@ app.registerExtension({
node.updatePairVisibility();
// Now add the buttons at the end
const addBtn = node.addWidget("button", "add_pair_btn", "➕ Add Pair", () => {
const addBtn = node.addWidget("button", "➕ Add Pair", null, () => {
node.addNewPair();
});
addBtn.serializeValue = () => undefined; // Don't serialize button
const removeBtn = node.addWidget("button", "remove_pair_btn", "➖ Remove Last Pair", () => {
const removeBtn = node.addWidget("button", "➖ Remove Last Pair", null, () => {
node.removeLastPair();
});
removeBtn.serializeValue = () => undefined; // Don't serialize button