Image Description
Article Metadata
Contents |
Inheritance
Nokia.ImageDescriptionx
|- Nokia.Widget
|- Nokia.Class (basic class)
1 - Description
An image label combines a text label with an image.
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
- element: 'selector'
- jQuery selector or the DOM reference to become the container of the component.
- Description: String
- Defines the image description text.
- lineHeight: int
- Defines the line height property.
- applyRoundedCorners: boolean
- Defines whether the component has rounded corners.
- backgroundClass: boolean
- Defines the background CSS class for the component.
- create: function
- Defines the called function to create callback.
- toggle: function
- Defines the called function to togglecallback.
- maxLines
- Defines the number of lines displayed in compressed mode
4.2 - Events - Callbacks
- create: function()
- Scope: [this.element]
- toggle: function(event)
- Scope: [this.element]
4.3 - Methods
No public methods for this component.
4.4 - Default options
- description: 'Image Description'
- lineHeight: 18
- applyRoundedCorners: true
- backgroundClass: 'ui-state-default'
- create: function() {}
- toggle: function() {}
5 - Component Demo
5.1 HTML
<img id="image01" src="images/image01.png" />
5.2 Javascript
window.image1 = new Nokia.ImageDescription({
element: '#image01',
description: jQuery('#description').html(),
maxLines: 1,
create: function() {
//alert("Image Description: Create");
}
toggle: function() {
//alert("Image Description: Toggle");
}
});
6 - Nokia WRT Browser Compatibility
| ▴ | S60 3.1 | S60 3.2 | S60 5.0 |
| Image Description | YES | YES | YES |


