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:
parent
427a36c2f0
commit
71f8a4e5ac
1 changed files with 28 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue