Replacing CSS and XML with Javascript calls


#1

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.


#2

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.


#3

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


#4

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