Style sheet or common style for controls

You must Login before you can answer or comment on any questions.

Can I set style sheet for controls in appcelerator. Or can I set predefined common style and used it for many controls?

2 Answers

Accepted Answer

You can also read about JSS

You can create function that does that.

function MyBlueView(options) {
    if(!options) {
        options = {};
    }
    options.backgroundColor = '#00f';
    return Ti.UI.createView(options);
}

— answered 2 years ago by Ivan Škugor
answer permalink
2 Comments
  • I am expecting like web css. means if I have 5 labels. All having same width, same height and sabe color. I need to define it common. Like in PHP when we are creating control using html we are setting css= like that.

    — commented 2 years ago by Spondev Dev

  • You could try Redux

    — commented 2 years ago by Ivan Škugor

Your Answer

Think you can help? Login to answer this question!