-
Notifications
You must be signed in to change notification settings - Fork 12
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
Research about how to integrate web components that depend each others #90
Comments
Note we will need the same for docdiff as well: #23 |
This is an initial attempt to be able to render the `readthedocs-search` addon inside the `readthedocs-flyout` one. I was able to: - include the `readthedocs-search` tag inside the flyout - connect the `focusin` event to the input from inside the flyout to call the search Each time I click on the input from inside the flyout, it shows a log in the console (for debugging). However, due to some reason that I don't know yet, the `readthedocs-search` tag does not contains any HTML inside ito, so even when the modal is triggered, nothing is shown. Related #90
This is an initial attempt to be able to render the `readthedocs-search` addon inside the `readthedocs-flyout` one. I was able to: - include the `readthedocs-search` tag inside the flyout - connect the `focusin` event to the input from inside the flyout to call the search Each time I click on the input from inside the flyout, it shows a log in the console (for debugging). However, due to some reason that I don't know yet, the `readthedocs-search` tag does not contains any HTML inside ito, so even when the modal is triggered, nothing is shown. Related #90
We found a simple pattern that consists on listening and triggering a The situation it's a little different for those addons that include UI elements that are not modals. I'm thinking about I'm sure there would be more complex addons with more UI elements where this pattern may not work great, but I think we've solved this problem for now and we can revisit in the future if we find it's not enough. |
We need to find a way to include
readthedocs-search
insidereadthedocs-flyout
so when clicking on the "Search" input field from inside the flyout, thereadthedocs-search
web component (modal) is triggered.The text was updated successfully, but these errors were encountered: