Replacing CSS and XML with Javascript calls


I’m looking at using Nativescript with a language that cross compiles to Javascript (Idris if anyone is curious) and I’m wondering if there’s a way to use direct calls from within Javascript instead of using XML and CSS and whatnot, as that would greatly simplify things.


You can always create UI components dynamically using JavaScript, set CSS through style properties. XML and CSS is just more flexible or easier to write in most cases.


Do you know of any documentation that could explain that in more detail? My search skills are failing on this.


You will find examples in the Cookbook’s UI section.