[next] Drop web like events (#1578)

* Use registerJSModule when available (#1573)

* Updated version to publish latest
This commit is contained in:
Andrea Giammarchi
2023-07-06 17:56:06 +02:00
committed by GitHub
parent a14e701be4
commit c6b5ce7f55
14 changed files with 40 additions and 46 deletions

View File

@@ -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)