... | ... | @@ -18,9 +18,11 @@ All the parameters are given in the `"parameters"` array. Each parameter is an o |
|
|
{ "type":"string", "name":"Path/to/my string parameter", "values":["a string"]}
|
|
|
```
|
|
|
* `"type"` (string): either `"number"` (for numeric parameters) or `"string"` (for string parameters)
|
|
|
* `"name"` (string): the name of the parameter in the ONELAB database, in the form of a `/`-separated path
|
|
|
* `"name"` (string): the unique name of the parameter in the ONELAB database, in the form of a `/`-separated path
|
|
|
* `"values"` (array): an array of numbers or strings, depending on the value of `"type"`
|
|
|
|
|
|
The `/`-separated path defining the unique `"name"` of each parameter is used in the Gmsh graphical user interface to create an item in the ONELAB parameter tree. Starting spaces, braces and numbers (in that order) are automatically stripped by Gmsh when displaying the parameters. This is useful to define a custom ordering of the tree, as the tree branches and leaves are sorted alphanumerically (numbers will appear before all letters; braces will appear after all letters).
|
|
|
|
|
|
## Other members common to both numeric and string parameters:
|
|
|
|
|
|
* `"visible"` (boolean): should the parameter be visible in the GUI?
|
... | ... | |