DOCS Update display.md (#1375)

This commit is contained in:
cnelir98
2023-04-10 18:44:08 +02:00
committed by GitHub
parent af981fc719
commit c05195c045

View File

@@ -45,8 +45,7 @@ To write compliant code, make sure to specify the target using the `target` para
```html
<py-script>
def display_hello():
# this fails because we don't have any implicit target
# from event handlers
# this works because we give an explicit target
display('hello', target="helloDiv")
</py-script>
<div id="helloDiv"></div>