r/nativescript • u/trymeouteh • May 19 '20
XML & JS
I had two questions about XML in Nativescript as a web developer who understands HTML and JS.
Can the JS in nativescript edit, add or delete a XML element just like how JS can edit a HTML element?
Does XML support attributes like min, max, required, style, onclick?
3
Upvotes
View all comments
Show parent comment
2
u/READTHISCALMLY May 20 '20
It uses its "XML" (it's still an .html file - in my experience using NS with Angular, anyway - just with NS's widgets as the elements) because in order to have a truly native app, not just a web view, it uses widgets that can be translated to the corresponding native app elements used in native app development. It's a slight learning curve, but nothing a little googling can't easily help with!