add support for custom widgets registration in Python

This commit is contained in:
Fabio Pliger
2022-04-19 19:24:22 -05:00
parent e409f5c166
commit a702cbdf10
4 changed files with 190 additions and 2 deletions

View File

@@ -296,7 +296,7 @@ async function mountElements() {
for (var el of matches) {
let mountName = el.getAttribute('py-mount');
if (!mountName){
mountName = el.id.replace("-", "_");
mountName = el.id.split("-").join("_");
}
source += `\n${ mountName } = Element("${ el.id }")`;
}