1
0
Fork 0
mirror of https://github.com/YunoHost/doc.git synced 2024-09-03 20:06:26 +02:00

Add number parser

This commit is contained in:
Yunobot 2020-12-02 21:10:50 +00:00
parent 427a36c2f0
commit 71f8a4e5ac

View file

@ -250,6 +250,34 @@ And in json:
}, },
``` ```
### Number
Like string except the user needs to enter a number
Example in toml:
```toml
[maybe.some.stuff.before.the_name]
type = "number"
ask.en = "the question in english"
ask.fr = "the question in french"
default = 0
```
And in json:
```javascript
{
"name": "the_name",
"type": "number",
"ask": {
"en": "the question in english",
"fr": "the question in french"
},
"default": 0
},
```
### App ### App
This type will ask the user to select an application in the list of installed This type will ask the user to select an application in the list of installed