8000 Correct erroneous function call for adding a class. by ntoll · Pull Request #140 · pyscript/docs · GitHub
[go: up one dir, main page]

Skip to content

Correct erroneous function call for adding a class. #140

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 1 commit into from
Sep 27, 2024
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
Correct erroneous function call for adding a class.
  • Loading branch information
ntoll committed Sep 26, 2024
commit af8636c85f9f59d6125796ffb78dd58a834abfe0
2 changes: 1 addition & 1 deletion docs/user-guide/dom.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ from pyscript.web import page, div, p

my_div = div()
my_div.style["background-color"] = "red"
my_div.classes.append("a-css-class")
my_div.classes.add("a-css-class")

my_p = p()
my_p.content = "This is a paragraph."
Expand Down
0