mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-23 23:34:43 +08:00
22 lines
429 B
JavaScript
22 lines
429 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)
|
|
}
|
|
}
|