I'm new with TM2. I'm finding a way to separate the view and the logic code. Is titanium mobile 2.0 support css3? Or any way to separate the code?
1 Answer
Accepted Answer
No.
If you use CommonJs, you can write "Theme" module in which you can store all styles:
// theme.js var Theme = { Label: { color: '#f00' } }; module.exports = Theme;
//label.js var Theme = require('theme') function createLabel() { return Ti.UI.createLabel(Theme.Label); }
Your Answer
Think you can help? Login to answer this question!