mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-14 17:14:41 +08:00
23 lines
430 B
JavaScript
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)
|
|
}
|
|
}
|