-
4 Aug 2011 4:30 PM #1
Simple Question from a New Sencha Touch User
Simple Question from a New Sencha Touch User
I need to be able to set a background image in my Carousel. At first I tried using the html config option with an img tag. The imaged appeared, but it pushed the "number of pages" graphic (displayed by the Carousel) off the screen.
Next, I tried using the style config option with the CSS background-image property. No matter what I tried I couldn't get this configuration to display the image.
Your guidance would be very much appreciated.
P.S. - Does the cls config option point to a certain directory by default?
-
4 Aug 2011 7:36 PM #2
cls is a property to which you can assign your class
For example
Code:cls : 'my-class'
then in your application specific style sheet you can do
You can also check out the Sencha Touch - An Introduction to Carousels as it demonstrates exactly what you need to solve your issue.Code:.my-class { background: #ff0 url('path/to/image.png'); }
appsandcheese.com
-
5 Aug 2011 5:10 AM #3
Thanks for pointing me in the right direction. I've got working now.


Reply With Quote