Closed matyalatte closed 2 months ago
Related to #23.
You can append strings to user inputs with "prefix" and "suffix". Also, "optional": true ignores "add_quotes", "prefix", "suffix", and "validator" when a text box is empty.
"prefix"
"suffix"
"optional": true
"add_quotes"
"validator"
{ "gui": [ { "label": "Optional component", "command": "echo %-%", "components": [ { "type": "text", "label": "Text box", "optional": true, "prefix": "-pre=", "suffix": " -suf", "validator": { "regex": ".+" } } ] } ] }
Related to #23.
You can append strings to user inputs with
"prefix"
and"suffix"
. Also,"optional": true
ignores"add_quotes"
,"prefix"
,"suffix"
, and"validator"
when a text box is empty.