Styling with templates

I am tring to refer to templates css files to style the view, these templates usually come with javascript file, how to determine whether the javascript file is necessary or just the css file is enough?


Just try to use them without the javascript file.

If some of the functionality does not work, you could look into the javascript for that specific functionality to see what it does. Maybe it is as simple as adding or removing a class. In that case you can mimic the functionality by using elm to listen to events and toggling the classes.

If the javascript functionality is more complex (DOM manipulation), it might require more complex techniques (like webcomponents).

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.