49 lines
1.6 KiB
Plaintext
49 lines
1.6 KiB
Plaintext
{
|
|
"createElementsFromJSON - full": {
|
|
"scope": "javascript,typescript",
|
|
"prefix": [
|
|
"createElementsFromJSON"
|
|
],
|
|
"body": [
|
|
"createElementsFromJSON(${0:document}, {",
|
|
"\ttag: '${1:div}',",
|
|
"}, ${16:true});"
|
|
],
|
|
"description": "tools/ui/creatElementsFromJSON"
|
|
},
|
|
"createElementsFromJSON - minimum": {
|
|
"scope": "javascript,typescript",
|
|
"prefix": [
|
|
"createElementsFromJSON"
|
|
],
|
|
"body": "createElementsFromJSON(document, { tag: '$0' });"
|
|
},
|
|
"appendElement - full": {
|
|
"scope": "javascript,typescript",
|
|
"prefix": "appendElement",
|
|
"body": [
|
|
"appendElement({",
|
|
"\ttag: '${1:div}',",
|
|
"\tid: '${2:id}',",
|
|
"\tnamespace: '${3:html}',",
|
|
"\tclassList: ['${4:class}'],",
|
|
"\tstyles: {${5:style}: '$6'},",
|
|
"\tproperties: {},",
|
|
"\tattributes: {},",
|
|
"\t[{ '${7:onload}', (e: Event) => $8, ${9:false} }],",
|
|
"\tcheckExistanceParent: ${10:HTMLElement},",
|
|
"\tignoreIfExists: ${11:true},",
|
|
"\tskipIfExists: ${12:true},",
|
|
"\tremoveIfExists: ${13:true},",
|
|
"\tcustomCheck: (doc: Document, options: ElementOptions) => ${14:true},",
|
|
"\tchildren: [$15]",
|
|
"}, ${16:container});"
|
|
]
|
|
},
|
|
"appendElement - minimum": {
|
|
"scope": "javascript,typescript",
|
|
"prefix": "appendElement",
|
|
"body": "appendElement({ tag: '$1' }, $2);"
|
|
}
|
|
}
|