Skip to content
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

feat: make children usage easier #22

Open
ayoayco opened this issue Dec 12, 2023 · 2 comments
Open

feat: make children usage easier #22

ayoayco opened this issue Dec 12, 2023 · 2 comments
Milestone

Comments

@ayoayco
Copy link
Owner

ayoayco commented Dec 12, 2023

From discussion: https://main.elk.zone/indieweb.social/@thomasreggi/111569486541264803

Reproduction: https://gist.github.com/reggi/a4bc79ec03b9cdb1ee9fd6c61ee8e081

Found children usage is possible by using onInit hook and storing the initial children there: https://codepen.io/ayoayco-the-styleful/pen/gOqJbzW?editors=1011

@ayoayco
Copy link
Owner Author

ayoayco commented Dec 17, 2023

Maybe a readonly this.children to access initial children will do

@ayoayco ayoayco added this to the v2.1.0 milestone Dec 17, 2023
@ayoayco ayoayco changed the title feat: make children usage work feat: make children usage easier Dec 17, 2023
@ayoayco
Copy link
Owner Author

ayoayco commented Feb 13, 2024

Also support by allowing cloneNode of template contents

@ayoayco ayoayco mentioned this issue Feb 13, 2024
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

No branches or pull requests

1 participant