Skip to content

Commit

Permalink
Merge pull request #174 from gallardoalba/proposed_modifications
Browse files Browse the repository at this point in the history
Proposed modifications to snippets
  • Loading branch information
davelopez authored Oct 4, 2021
2 parents a5fa918 + 3af4e74 commit 66c6eef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/src/snippets.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
"Boolean parameter": {
"prefix": "gx-boolean-param",
"body": [
"<param argument=\"${1:--}\" type=\"boolean\" truevalue=\"$1\" falsevalue=\"$2\" label=\"$3\" help=\"${4:TODO}\" />"
"<param argument=\"${1:--}\" type=\"boolean\" truevalue=\"$1\" falsevalue=\"$2\" checked=\"${3|false,true|}\" label=\"$4\" help=\"${5:TODO}\" />"
],
"description": "Boolean parameter"
},
Expand Down Expand Up @@ -145,6 +145,7 @@
" <add value=\"_\" />",
" </valid>",
" </sanitizer>",
" <validator type=\"regex\">[0-9a-zA-Z_]+</validator>",
"</param>"
],
"description": "Text parameter with sanitizer"
Expand Down

0 comments on commit 66c6eef

Please sign in to comment.