Commit 07351478 authored by LE BRETON Come's avatar LE BRETON Come

Propose a json formatting from which to generate the widgets.

parent e58501c1
{
contents: [
{uid : "hyp", label: "hyp", doc: "documentation", default_value: 2, bound_min: 0, bound_max: 5},
{uid : "dif", label: "dif", doc: "documentation", default_value: false},
{uid : "res", label: "res", doc: "documentation", default_value: false},
{uid : "prec", label: "prec", doc: "documentation", default_value: false},
{uid : "inf", label: "inf", doc: "documentation", default_value: false},
{uid : "wind", label: "wind", doc: "documentation", default_value: false},
]
}
{
contents: [
group: {uid : "Model parameters", icon: "fa::cogs", advanced: false,
contents: [
parameter: {uid: "hyp", type: "dtk::d_int", widget: "dtkWidgetsParameterSpinBox", advanced: false},
parameter: {uid: "dif", type: "dtk::d_bool", widget: "dtkWidgetsParameterCheckBox", advanced: false},
parameter: {uid: "res", type: "dtk::d_bool", widget: "dtkWidgetsParameterCheckBox", advanced: false},
parameter: {uid: "prec", type: "dtk::d_bool", widget: "dtkWidgetsParameterCheckBox", advanced: false},
parameter: {uid: "inf", type: "dtk::d_bool", widget: "dtkWidgetsParameterCheckBox", advanced: false},
parameter: {uid: "wind", type: "dtk::d_bool", widget: "dtkWidgetsParameterCheckBox", advanced: false},
]
]
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment