HTML Elements › Forums › General Discussions › differences beween the code files
This topic contains 2 replies, has 2 voices, and was last updated by admin 4 weeks, 1 day ago.
- AuthorPosts
- December 22, 2020 at 9:23 pm #101261
Sorry, I’m new to SMART, so I have a general question. The source code is placed to different pathes. There are source-files in folder “components”, “modules” and “source”. I can’t figure out what the difference is and to which folder I have to point my references ? I would be thankfull for an explanation!
December 22, 2020 at 11:41 pm #101262Hi,
The “modules” folder contains the javascript files used in most of the Javascript examples. Each module imports one or more javascript files from the “source” folder. For example, the modules/smart.button imports the smart.element.js and smart.button.js from the “source” folder. You can see that in our Docs we refer to the “modules” – https://www.htmlelements.com/docs/button/.
The “components” folder contains the web components with shadow dom and the css styles imported in them. You may read more: https://www.htmlelements.com/docs/shadow-dom/. We use these in all examples about Shadow DOM, which are available in the demos section.Best regards,
Peter StoevSmart UI Team
https://www.htmlelements.com/December 23, 2020 at 5:43 pm #101267Hi,
I also forgot to mention this https://www.htmlelements.com/docs/download-and-installation/.
Hope this helps.
Best regards,
Peter StoevSmart UI Team
https://www.htmlelements.com/ - AuthorPosts
You must be logged in to reply to this topic.