FAQs • Me • Register interest • Acknowledgements
< Home
 Styling

Any view can be styled. The stylesheet consists of a series of JavaScript objects, each of which associates a selector with a set of styling options:

"selector": {
	option: "value",
	option2: "value"
}

Selectors come in one of three types:

A few common options are caught by the runtime. Of these, the most important are:

There is also a mechanism for passing through 'configuration options' to the underlying toolkit. To use this, use the "sencha" option:

"selector": {
	sencha: {
		...
	}
}

inside which can be any valid Sencha Touch configuration option.

Platform-specific styling can be achieved by using the specific phoneStyles and tabletStyles stylesheets. Any styling options applied in these stylesheets overrides corresponding options in the main stylesheet.