Explorar o código

Added label type ingredient

VirtualColossus %!s(int64=5) %!d(string=hai) anos
pai
achega
32625dc0b0
Modificáronse 1 ficheiros con 10 adicións e 0 borrados
  1. 10 0
      src/web/HTMLIngredient.mjs

+ 10 - 0
src/web/HTMLIngredient.mjs

@@ -293,6 +293,16 @@ class HTMLIngredient {
 
                 this.manager.addDynamicListener(".arg-selector", "change", this.argSelectorChange, this);
                 break;
+            case "label":
+                html += `<div class="form-group">
+                    <label>${this.name}</label>
+                    <input type="hidden"
+                        class="form-control arg"
+                        id="${this.id}"
+                        arg-name="${this.name}"
+                        value="">
+                </div>`;
+                break;
             default:
                 break;
         }