Durian.js is a lightweight Javascript framework that allows for custom HTML tag to create interactive components for large applications! Easy to learn, light and fun to develop with!
MIT License
2
stars
2
forks
source link
Allow opt-ining into using `ShadowRoot` while rendering `Component`s #13
Hello! This is an issue for tracking the development and progress for implementing opt-ins for rendering using a ShadowRoot. Please see below for more information about the implementation and design documentation and information regarding this.
✨Design documentation✨
This feature would implement a new attribute placeholder for allowing opt-ins when using a ShadowRoot to render components. The shadow root allows for implementing standalone components. However, we can allow the framework to offer a feature to opt-in optionally when using a shadow root. Please note that you can find more information on this topic in the sources below.
Sample usage 👨💻
To use this feature that's to be implemented, I'll just implement an attribute that provides input to the component that allows for manupulation of the variable. Please see example syntax below.
In the code above, this component would NOT use the shadow root as a render.
Implementation 🔨
For implementing this feature, we could just simply implement this in the @durian.js/core package and uses the document.getAttribute() to get the useShadow prop/attribute. Nice and simple 🥰🥰🥰!
Hello! This is an issue for tracking the development and progress for implementing opt-ins for rendering using a
ShadowRoot
. Please see below for more information about the implementation and design documentation and information regarding this.✨Design documentation✨
This feature would implement a new attribute placeholder for allowing opt-ins when using a
ShadowRoot
to render components. The shadow root allows for implementing standalone components. However, we can allow the framework to offer a feature to opt-in optionally when using a shadow root. Please note that you can find more information on this topic in the sources below.Sample usage 👨💻
To use this feature that's to be implemented, I'll just implement an attribute that provides input to the component that allows for manupulation of the variable. Please see example syntax below.
Syntax:
In the code above, this component would NOT use the shadow root as a render.
Implementation 🔨
For implementing this feature, we could just simply implement this in the
@durian.js/core
package and uses thedocument.getAttribute()
to get theuseShadow
prop/attribute. Nice and simple 🥰🥰🥰!Other sources 📖