mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-19 18:27:29 -05:00
add support for custom widgets registration in Python
This commit is contained in:
@@ -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 }")`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user