mirror of
https://github.com/YunoHost/doc.git
synced 2024-09-03 20:06:26 +02:00
number is just after string type
This commit is contained in:
parent
40124f04cc
commit
b007af915b
2 changed files with 62 additions and 62 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue