This commit is contained in:
Bilal
2023-03-10 16:54:11 +01:00
parent 4d63922b23
commit c1ddbd9205
4 changed files with 156 additions and 379 deletions

View File

@@ -35,13 +35,13 @@ export default class View {
this.updateMenu(document.getElementById(`menu0-${e.name}`).innerText, "next")
}
this.zone.appendChild(elem)
riot.mount(elem, {
name: e.name,
count: e.count,
idd: `menu0-${e.name}`
}, "selectorfragment")
this.zone.appendChild(elem)
})
}
@@ -55,12 +55,13 @@ export default class View {
renderPath(path) {
this.path.innerHTML = ""
let elem = document.createElement("locfragment")
this.path.appendChild(elem)
riot.mount(elem, {
msg: path.filter(Boolean).join(" ► ")
}, "locfragment")
this.path.appendChild(elem)
log("Loc->View", `Chemin change ${path}`)
}