number is just after string type

This commit is contained in:
Thibaud WOJTOWICZ 2021-08-14 23:23:08 +02:00
parent 40124f04cc
commit b007af915b
2 changed files with 62 additions and 62 deletions

View file

@ -113,9 +113,38 @@ default = "en" # optional
"en": "the question in english",
"fr": "la question en français"
},
"example": "an example value",
"example": "Un exemple de valeur",
"choices": ["fr", "en"],
"default": "en" // optional
"default": "en" // optionel
},
```
[/ui-tab]
[/ui-tabs]
### Nombre
Comme le type chaîne de caractères (en anglais: `string`) mais uniquement pour les nombres.
[ui-tabs position="top-left" active="0" theme="lite"]
[ui-tab title="in toml"]
```toml
[maybe.some.stuff.before.the_name]
type = "number"
ask.en = "the question in english"
ask.fr = "la question en français"
default = 0
```
[/ui-tab]
[ui-tab title="in json"]
```javascript
{
"name": "the_name",
"type": "number",
"ask": {
"en": "the question in english",
"fr": "la question en français"
},
"default": 0
},
```
[/ui-tab]
@ -268,35 +297,6 @@ default = true
[/ui-tab]
[/ui-tabs]
### Nombre
Comme le type string mais uniquement pour les nombres.
[ui-tabs position="top-left" active="0" theme="lite"]
[ui-tab title="in toml"]
```toml
[maybe.some.stuff.before.the_name]
type = "number"
ask.en = "the question in english"
ask.fr = "la question en français"
default = 0
```
[/ui-tab]
[ui-tab title="in json"]
```javascript
{
"name": "the_name",
"type": "number",
"ask": {
"en": "the question in english",
"fr": "la question en français"
},
"default": 0
},
```
[/ui-tab]
[/ui-tabs]
### Application
Ce type demande à l'utilisateur de selectionner une application dans la liste

View file

@ -118,6 +118,37 @@ default = "en" # optional
```
[/ui-tab]
[/ui-tabs]
### Number
Like string except the user needs to enter a number
Example in toml:
[ui-tabs position="top-left" active="0" theme="lite"]
[ui-tab title="in toml"]
```toml
[maybe.some.stuff.before.the_name]
type = "number"
ask.en = "the question in english"
ask.fr = "la question en français"
default = 0
```
[/ui-tab]
[ui-tab title="in json"]
```javascript
{
"name": "the_name",
"type": "number",
"ask": {
"en": "the question in english",
"fr": "la question en français"
},
"default": 0
},
```
[/ui-tab]
[/ui-tabs]
### Domain
@ -270,37 +301,6 @@ default = true
[/ui-tab]
[/ui-tabs]
### Number
Like string except the user needs to enter a number
Example in toml:
[ui-tabs position="top-left" active="0" theme="lite"]
[ui-tab title="in toml"]
```toml
[maybe.some.stuff.before.the_name]
type = "number"
ask.en = "the question in english"
ask.fr = "la question en français"
default = 0
```
[/ui-tab]
[ui-tab title="in json"]
```javascript
{
"name": "the_name",
"type": "number",
"ask": {
"en": "the question in english",
"fr": "la question en français"
},
"default": 0
},
```
[/ui-tab]
[/ui-tabs]
### App
This type will ask the user to select an application in the list of installed