mirror of
https://github.com/pyscript/pyscript.git
synced 2026-02-27 11:04:05 -05:00
[next] Drop web like events (#1578)
* Use registerJSModule when available (#1573) * Updated version to publish latest
This commit is contained in:
committed by
GitHub
parent
a14e701be4
commit
c6b5ce7f55
@@ -29,14 +29,14 @@
|
||||
|
||||
const button = document.createElement("button");
|
||||
button.textContent = "click";
|
||||
button.setAttribute("mpy-click", "test_click(event)");
|
||||
button.setAttribute("mpy-click", "test_click");
|
||||
document.body.append(button);
|
||||
},
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<mpy-script mpy-click="test_click(event)">
|
||||
<mpy-script mpy-click="test_click">
|
||||
def test_click(event):
|
||||
print(event.type)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user