Hi,
I want to change background of selectfield from white to other color.
Also I want to change font color,size of options in selectfield.
How do I change background, font of selectfield??
Thanks,
Vishwas
Hi,
I want to change background of selectfield from white to other color.
Also I want to change font color,size of options in selectfield.
How do I change background, font of selectfield??
Thanks,
Vishwas
var d = document.getElementById( 'department' );
d.style.background='red';
Hope it will Help ..
You have a lot of tools at your disposal for this.
Inline styles: http://docs.sencha.com/touch/2-1/#!/...lect-cfg-style
Your own classes:
http://docs.sencha.com/touch/2-1/#!/...ct-cfg-baseCls
http://docs.sencha.com/touch/2-1/#!/...Select-cfg-cls
Generalized theming using scss variables:
http://docs.sencha.com/touch/2-1/#!/...ar-S-form-dark
How you decide to approach this is dependent on a number of factors such as how much you intend on reusing these styles, etc.
Try these out and if you have trouble targeting the style, just post the code you tried so we can help.
Brice
Brice Mason
Front End Developer
Modus Create
@bricemason
bricemason.com
Sencha Touch Screencasts
Vimeo - Sencha Touch Channel
Github Projects:
Sencha Cordova Builder enables the automatic creation, building, and running of PhoneGap (Cordova) projects with Sencha Touch.
Am I Sencha Touch Ready? checks your system to determine what you need to do to start Sencha Touch development. If you're having trouble getting up and running, try this out.
Sencha Tools Bridge allows Sencha SDK Tools to co-exist with Sencha Cmd on the same system.