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!
Hello there, this is a pull request for development on implementing exposure of DOM helper functions inside the durian-component. Contrary to the global scope, you cannot just simply use the document object to access the DOM helper functions such as document.querySelector(). I've implemented the code to inject a js script line inside the code to expose the shadow root DOM functions in component. So, not you can just reference component instead of document to grab stuff from the DOM tree (The shadow DOM to be specific).
Hello there, this is a pull request for development on implementing exposure of DOM helper functions inside the
durian-component
. Contrary to the global scope, you cannot just simply use thedocument
object to access the DOM helper functions such asdocument.querySelector()
. I've implemented the code to inject a js script line inside the code to expose the shadow root DOM functions incomponent
. So, not you can just referencecomponent
instead ofdocument
to grab stuff from the DOM tree (The shadow DOM to be specific).