Titanium Alloy - TSS vs CSS?

I just started coding titanium alloy. Having previously learned JavaScript, HTML and CSS through various resources, I'm a little confused about the Titanium (Appcelerator) version of the stylesheet.

What is the difference between Titanium TSS and regular CSS coding? Are there any good resources available to help you learn TSS with your basic CSS knowledge?

Thanks in advance for your help!

+3


source to share


1 answer


TSS is completely different from CSS. There are some similarities, but they must be quickly forgotten.

For example, CSS does textAlign: center

, the TSS does something similar, but displays an error message if you copy it, you need to wrap the center

quotation marks: textAlign: 'center'

.



In fusion, TSS and XML files are generated into "classic" Javascript files. This way, basically all the properties you would normally set in a method createView

can now be set in TSS. Which makes the files much smaller and complementary

For how TSS works, I highly recommend you dive into the Titanium documentation and look at the "classic" documentation, or, if available, the spline documentation. For example in a text box: http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.TextField

+2


source







All Articles