8000 DOCS Update display.md by c-neli-r · Pull Request #1375 · pyscript/pyscript · GitHub
[go: up one dir, main page]

Skip to content

DOCS Update display.md #1375

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions docs/reference/API/display.md
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

implicit target is given here

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe:

# this works because we give an explicit target

</py-script>
<div id="helloDiv"></div>
Expand Down
0