New templates, node advanced display, style fixes

This commit is contained in:
barsdeveloper
2022-04-25 14:05:15 +02:00
parent 81276a86be
commit 4b563f023e
19 changed files with 415 additions and 163 deletions

View File

@@ -11,7 +11,11 @@
export default class ITemplate {
/** @type {IInput[]} */
inputObjects = []
#inputObjects = []
get inputObjects() {
return this.#inputObjects
}
/**
* @param {T} entity
@@ -32,14 +36,14 @@ export default class ITemplate {
* @param {T} element
*/
inputSetup(element) {
this.inputObjects = this.createInputObjects(element)
this.#inputObjects = this.createInputObjects(element)
}
/**
* @param {T} element
*/
cleanup(element) {
this.inputObjects.forEach(v => v.unlistenDOMElement())
this.#inputObjects.forEach(v => v.unlistenDOMElement())
}
/**