Skip to content

Instantly share code, notes, and snippets.

@ferpetrelli
Created June 2, 2020 18:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ferpetrelli/58e9e95173111c126d6da3062461b930 to your computer and use it in GitHub Desktop.
Save ferpetrelli/58e9e95173111c126d6da3062461b930 to your computer and use it in GitHub Desktop.
{
"Twill input regular": {
"scope": "php,blade",
"prefix": "tinput",
"body": [
"@formField('input', [",
" 'name' => '${1:name}',",
" 'label' => '${1:label}',",
"])"
],
"description": "Twill input regular"
},
"Twill input checkbox": {
"scope": "php,blade",
"prefix": "tcheckbox",
"body": [
"@formField('checkbox', [",
" 'name' => '${1:name}',",
" 'label' => '${2:label}',",
"])"
],
"description": "Twill input checkbox"
},
"Twill input media": {
"scope": "php,blade",
"prefix": "tmedia",
"body": [
"@formField('medias', [",
" 'name' => '${1:name}',",
" 'label' => '${2:label}',",
" 'with_multiple' => false,",
" 'no_crop' => false,",
" \"withAddInfo\" => false,",
"])"
],
"description": "Twill input media"
},
"Twill input file": {
"scope": "php,blade",
"prefix": "tfile",
"body": [
"@formField('files', [",
" 'name' => '${1:name}',",
" 'label' => '${2:label}',",
"])"
],
"description": "Twill input file"
},
"Twill input browser": {
"scope": "php,blade",
"prefix": "tbrowser",
"body": [
"@formField('browser', [",
" 'name' => '${1:name}',",
" 'moduleName' => '${2:moduleName}',",
" 'label' => '${3:label}',",
" 'routePrefix' => '${4:routePrefix}',",
" 'max' => ${5:max}",
"])"
],
"description": "Twill input browser"
},
"Twill input wysiwyg": {
"scope": "php,blade",
"prefix": "twysiwyg",
"body": [
"@formField('wysiwyg', [",
" 'name' => '${1:name}',",
" 'label' => '${2:label}',",
"])"
],
"description": "Twill input wysiwyg"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment