mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-05-13 23:37:30 +08:00
Refactoring and bugfixing
This commit is contained in:
@@ -5,19 +5,19 @@ export default class Template {
|
||||
|
||||
/**
|
||||
* Computes the html content of the target element.
|
||||
* @param {GraphNode} element Target element
|
||||
* @param {Entity} entity Entity representing the element
|
||||
* @returns The computed html
|
||||
*/
|
||||
render(element) {
|
||||
render(entity) {
|
||||
return ``
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the html elements rendered by this template.
|
||||
* @param {GraphNode} element Target element
|
||||
* @param {GraphNode} entity Entity representing the element
|
||||
* @returns The rendered elements
|
||||
*/
|
||||
getElements(element) {
|
||||
getElements(entity) {
|
||||
let aDiv = document.createElement('div')
|
||||
aDiv.innerHTML = this.render(element)
|
||||
return aDiv.childNodes
|
||||
|
||||
Reference in New Issue
Block a user