January 2012
Intermediate to advanced
178 pages
4h 31m
English
You can customize the jQTouch default behavior
by sending a variety of property settings into the constructor. You saw
this previously with the icon property, but there are several
others that you should be aware of, shown in Table 4-1.
Table 4-1. jQTouch customization options
| Property | Default | Expects | Notes |
|---|---|---|---|
addGlossToIcon | true | true or false | If set to true, gloss will be added to the home screen icon on iPhone. Has no effect on Android. |
backSelector | '.back,
.cancel, .goback' | Any valid CSS selector; separate multiple values with a comma | Defines elements that will trigger the “back” behavior of jQTouch when tapped. When the back behavior is invoked, the current panel moves off screen with a reverse animation and is removed from history. |
cacheGetRequests | true | true or false | If set to true, automatically caches GET requests, so subsequent clicks reference the already-loaded data. |
cubeSelector | '.cube' | Any valid CSS selector; separate multiple values with a comma | Defines elements that will trigger a cube animation from the current panel to the target panel. |
dissolveSelector | '.dissolve' | Any valid CSS selector; separate multiple values with a comma | Defines elements that will trigger a dissolve animation from the current panel to the target panel. |
fadeSelector | '.fade' | Any valid CSS selector; separate multiple values with a comma | Defines elements that will trigger a fade animation from the current panel to the target panel. |
fixedViewport | true | true or false | If set to true, prevents users from being able ... |
Read now
Unlock full access