Implement model switcher

This commit is contained in:
2025-11-14 15:12:20 +01:00
parent 7f2d326612
commit d5183bdca0
3 changed files with 39 additions and 4 deletions

View File

@@ -6,6 +6,7 @@
color: "#e4a363",
defaults: {
name: { value: "" },
model: { value: "mb-model", required: true },
enableLog: { value: false },
logLevel: { value: "error" },
@@ -34,6 +35,14 @@
type:"num",
types:["num"]
});
$("#node-input-model").typedInput({type:"model", types:[{
value: "model",
options: [
{ value: "mb-model", label: "Mass balance" },
{ value: "t-model", label: "Takács model" }
]
}]});
},
oneditsave: function() {
// save logger fields
@@ -54,6 +63,10 @@
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
<div class="form-row">
<label for="node-input-model"><i class="fa fa-tag"></i> Model</label>
<input type="text" id="node-input-model">
</div>
<!-- Logger fields injected here -->
<div id="logger-fields-placeholder"></div>