Files
ueblueprint/js/template/ITemplate.js
barsdeveloper a0eeca11d1 Various fixes
2022-03-28 23:04:24 +02:00

23 lines
430 B
JavaScript

// @ts-check
/**
* @typedef {import("../element/IElement").default} IElement
*/
export default class ITemplate {
/**
* @param {IElement} entity
*/
render(entity) {
return ""
}
/**
* @param {IElement} element
*/
apply(element) {
// TODO replace with the safer element.setHTML(...) when it will be availableBreack
element.innerHTML = this.render(element)
}
}