11.2025: new version released, sample folder added
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
"html": {
|
||||
"prefix": "html",
|
||||
"body": [
|
||||
"html(`$1`);"
|
||||
"html(`$`);"
|
||||
],
|
||||
"description": "Create a DOM node"
|
||||
},
|
||||
@@ -15,35 +15,17 @@
|
||||
"description": "Use the DOM collection of functions"
|
||||
},
|
||||
|
||||
"*element": {
|
||||
"prefix": "*element",
|
||||
"*shadow": {
|
||||
"prefix": "*shadow",
|
||||
"body": [
|
||||
"class Index extends HTMLElement {",
|
||||
"",
|
||||
" css = /*css*/ `",
|
||||
" index-el {",
|
||||
" ",
|
||||
" }",
|
||||
" `",
|
||||
"",
|
||||
" html = /*html*/ `",
|
||||
" `",
|
||||
"",
|
||||
" constructor() {",
|
||||
" super();",
|
||||
" addStyle(this.css);",
|
||||
" this.innerHTML = this.html;",
|
||||
" }",
|
||||
"",
|
||||
" connectedCallback() {",
|
||||
"class Index extends Shadow {",
|
||||
" render() {",
|
||||
" ",
|
||||
" }",
|
||||
"",
|
||||
"}",
|
||||
"",
|
||||
"customElements.define('index-el', Index);",
|
||||
"export default Index;"
|
||||
" ",
|
||||
"register(Index)"
|
||||
],
|
||||
"description": "Custom Element Template"
|
||||
"description": "Custom Shadow Template"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user