-
Notifications
You must be signed in to change notification settings - Fork 56
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
Add CSSWidgetWrapper #98
base: main
Are you sure you want to change the base?
Conversation
Thanks! The |
The docs are unclear, the current description explains implementation details, but it doesn't actually say what the Can you follow the formatting conventions used here? Use Markdown syntax 👍 https://docs.julialang.org/en/v1/manual/documentation/ |
I think you might be able to achieve this without needing to create a wrapper element (which could affect layout styles), by generating code like this: $widget
<script>
const widget = currentScript.previousElementSibling
</script> |
Thank you for the input. Using the first child of the bond and removing the wrapping div makes it a lot easier. I also realized I could make more general one for a general JavaScript injection. |
This widget wraps an existing widget to add CSS styles via JavaScript.
Features:
Example: