Skip to content

Update docs for update_all changes#214

Open
iliketocode2 wants to merge 2 commits intopyscript:mainfrom
iliketocode2:fix-update_all-docs
Open

Update docs for update_all changes#214
iliketocode2 wants to merge 2 commits intopyscript:mainfrom
iliketocode2:fix-update_all-docs

Conversation

@iliketocode2
Copy link
Contributor

Documentation updates for the associated PR in pyscript.

  • Note that these introduce the replacement of className with classes for the update_all function.
  • Usage:
# Bulk update all elements.
items.update_all(
    innerHTML="Hello",
    classes="updated-item",
    style={"color": "blue"},
)

Copy link
Contributor

@WebReflection WebReflection left a comment

Choose a reason for hiding this comment

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

thanks, and let's wait for the PR to pass CI and be merged, we're also very close to a release so this is just about the perfect timing for this 🙏

@ntoll
Copy link
Member

ntoll commented Feb 26, 2026

OK. I believe this section of the docs also needs updating: https://docs.pyscript.net/2026.2.1/user-guide/dom/#working-with-collections

You'll need to update this file: https://github.com/pyscript/docs/blob/main/docs/user-guide/dom.md

👍

@iliketocode2
Copy link
Contributor Author

Thanks for the catch! I'll get on that today 💻

@iliketocode2
Copy link
Contributor Author

@ntoll I believe all of the necessary changes were made but let me know if I should add a comment indicating the underlying change of update_all's function or anything else. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants