cheng-alvin / durian.js

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

Implement internal stateflow #21

Closed cheng-alvin closed 10 months ago

cheng-alvin commented 10 months ago

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).

cheng-alvin commented 10 months ago

Added changelog.