mirror of
https://github.com/pyscript/pyscript.git
synced 2026-02-13 07:01:00 -05:00
DOCS Update display.md (#1375)
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user