Namespaces
Variants
Actions
(Difference between revisions)

Scroll

Jump to: navigation, search
m (Protected "Scroll" ([edit=sysop] (indefinite) [move=sysop] (indefinite)))
Line 3: Line 3:
 
   
 
   
 
<code>Nokia.Widget
 
<code>Nokia.Widget
 
+
    |- Nokia.Scroll
|- Nokia.Scroll
+
 
</code>
 
</code>
  
Line 27: Line 26:
 
<pre>
 
<pre>
 
<!-- Themeroller CSS -->
 
<!-- Themeroller CSS -->
<link rel="stylesheet" href="/themes/themeroller/default-theme/THEMEROLLER.css" type="text/css" media="screen">
+
<link rel="stylesheet" href="themes/themeroller/<theme>/Themeroller.css" type="text/css" media="screen">
<!-- Nokia WRT Framework Base CSS -->
+
<link rel="stylesheet" href="/themes/nokia/base/JS4WRT.css" type="text/css" media="screen">
+
 
<!-- Specific Theme/Resolution CSS -->
 
<!-- Specific Theme/Resolution CSS -->
 
<link rel="stylesheet" href="/themes/nokia/ext-theme/<theme>/<resolution>/custom.css" type="text/css" media="screen">
 
<link rel="stylesheet" href="/themes/nokia/ext-theme/<theme>/<resolution>/custom.css" type="text/css" media="screen">
Line 38: Line 35:
 
<pre>
 
<pre>
 
<!-- jQuery file -->
 
<!-- jQuery file -->
<script src="/lib/jquery/JQUERY.js" type="text/javascript" charset="utf-8"></script>
+
<script src="/lib/jquery/jQuery.js" type="text/javascript" charset="utf-8"></script>
<!-- JS4WRT file -->
+
<!-- Guarana file -->
<script src="/lib/JS4WRT.js" type="text/javascript" charset="utf-8"></script>
+
<script src="/lib/Guarana.js" type="text/javascript" charset="utf-8"></script>
 
</pre>  
 
</pre>  
  

Revision as of 18:23, 18 November 2009

Inheritance

Nokia.Widget
|- Nokia.Scroll

1 - Description

The Scroll component is used as a visual feedback to indicate the existence of more content beyond the screen.


2 - Visual Design

Scroll02.png Scroll04.png

 

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 

 

87 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved