Scroll
m |
hamishwillee
(Talk | contribs) m (Hamishwillee - Bot update - Fix ArticleMetaData) |
||
| (2 intermediate revisions by one user not shown) | |||
| Line 1: | Line 1: | ||
| − | [[ | + | {{ArticleMetaData <!-- v1.2 --> |
| − | + | |sourcecode= <!-- Link to example source code e.g. [[Media:The Code Example ZIP.zip]] --> | |
| + | |installfile= <!-- Link to installation file (e.g. [[Media:The Installation File.sis]]) --> | ||
| + | |devices= <!-- Devices tested against - e.g. ''devices=Nokia 6131 NFC, Nokia C7-00'') --> | ||
| + | |sdk= <!-- SDK(s) built and tested against (e.g. [http://linktosdkdownload/ Qt SDK 1.1.4]) --> | ||
| + | |platform= <!-- Compatible platforms - e.g. Symbian^1 and later, Qt 4.6 and later --> | ||
| + | |devicecompatability= <!-- Compatible devices e.g.: All* (must have internal GPS) --> | ||
| + | |dependencies= <!-- Any other/external dependencies e.g.: Google Maps Api v1.0 --> | ||
| + | |signing= <!-- Signing requirements - empty or one of: Self-Signed, DevCert, Manufacturer --> | ||
| + | |capabilities= <!-- Capabilities required by the article/code example (e.g. Location, NetworkServices. --> | ||
| + | |keywords= <!-- APIs, classes and methods (e.g. QSystemScreenSaver, QList, CBase --> | ||
| + | |language= <!-- Language category code for non-English topics - e.g. Lang-Chinese --> | ||
| + | |translated-by= <!-- [[User:XXXX]] --> | ||
| + | |translated-from-title= <!-- Title only --> | ||
| + | |translated-from-id= <!-- Id of translated revision --> | ||
| + | |review-by= <!-- After re-review: [[User:username]] --> | ||
| + | |review-timestamp= <!-- After re-review: YYYYMMDD --> | ||
| + | |update-by= <!-- After significant update: [[User:username]]--> | ||
| + | |update-timestamp= <!-- After significant update: YYYYMMDD --> | ||
| + | |creationdate= 20091109 | ||
| + | |author= [[User:Kbwiki]] | ||
| + | }} | ||
| + | [[Category:Guarana UI]] | ||
=Inheritance= | =Inheritance= | ||
Latest revision as of 13:22, 31 July 2012
Article Metadata
Contents |
Inheritance
Nokia.Scroll
|- Nokia.Widget
|- Nokia.Class (basic class)
1 - Description
The Scroll component is used as a visual feedback to indicate the existence of more content beyond the screen.
2 - Visual Design
3 - Component Dependencies
3.1 CSS
<!-- Themeroller CSS --> <link rel="stylesheet" href="themes/themeroller/<theme>/Themeroller.css" type="text/css" media="screen"> <!-- Specific Theme/Resolution CSS --> <link rel="stylesheet" href="/themes/nokia/ext-theme/<theme>/<resolution>/custom.css" type="text/css" media="screen">
3.2 Javascript
<!-- jQuery file --> <script src="/lib/jquery/jQuery.js" type="text/javascript" charset="utf-8"></script> <!-- Guarana file --> <script src="/lib/Guarana.js" type="text/javascript" charset="utf-8"></script>
4 - Functional Specifications/Requirements
4.1 - Options:
- scrollBar: boolean
- Defines whether a traditional scrollbar is used by the component.
- showArrows: boolean
- Defines whether arrows are used by the component.
- bottomImage: boolean
- Defines whether the bottom image indication is used.
- duration: boolean
- Defines the duration of scroll activity.
- increase
- Defines the increase of scroll activity. This option is used in scroll speed calculation.
4.2 - Events - Callbacks
- create: function()
- Scope: [this.element]
- scroll: function()
- Scope: [this.element]
4.3 - Methods:
- scroll: function(direction, callback)
- Apply scroll on a specific direction
- Return nothing
4.4 - Default options
- increase: 100,
- duration: 200,
- scrollBar: true,
- showArrows: false,
- bottomImage: true
5 - Component Demo
5.1 HTML
<empty>
5.2 Javascript
var scroll = new Nokia.Scroll({
scrollBar: true,
showArrows: false,
increase: 250,
create: function() {
//alert('Scroll: Created');
},
scroll: function() {
//alert('Scroll: Scroll');
}
});
6 - Nokia WRT Browser Compatibility
| ▴ | S60 3.1 | S60 3.2 | S60 5.0 |
| Scroll | YES | YES | YES |



