×
Namespaces

Variants
Actions

Iconic Menu

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata
Article
Created: User:Kbwiki (09 Nov 2009)
Last edited: hamishwillee (31 Jul 2012)

Contents

Inheritance

Nokia.IconicMenu
|- Nokia.Widget
|- Nokia.Class (basic class)

1 - Description

A menu with content organized in a grid, enabling the calling of native applications accessed by the WRT library. This content should be an image and/or a text. To access the content, the user must tap or click the icon.


2 - Visual Design

Iconsmenu01.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

  • element: 'selector'
    • jQuery selector or the DOM reference to become the container of the component.
  • maximize: boolean
    • Defines whether the component is created as maximised.


4.2 - Events - Callbacks

  • create: function()
    • Scope: [this.element]


4.3 - Methods

  • select: function(item, event)
    • Selects a component item.
    • return [void]

4.4- Default options

  • maximize: true


5 - Component Demo

5.1 HTML

<div id="menu"></div>

5.2 Javascript

var tabs = new Nokia.IconicMenu({
     element: '#menu',
     items: [
          {
               label: "favorites",
               icon: 'images/icon1.png',
               select: function(item, event) {
                    alert('IconicMenu Clicked on: ' + item.label);
               }
          },
          {
               label: "e-mails",
               icon: 'images/icon2.png',
               select: function(item, event) {
                    alert('IconicMenu Clicked on: ' + item.label);
               }
          },
          {
               label: "chat",
               icon: 'images/icon3.png',
               select: function(item, event) {
                    alert('IconicMenu Clicked on: ' + item.label);
               }
          },
          {
               label: "trash",
               icon: 'images/icon4.png',
               select: function(item, event) {
                    alert('IconicMenu Clicked on: ' + item.label);
               }
          },
          {
               label: "save",
               icon: 'images/icon5.png',
               select: function(item, event) {
                    alert('IconicMenu Clicked on: ' + item.label);
               }
          },
          {
               label: "gallery",
               icon: 'images/icon6.png',
               select: function(item, event) {
                    alert('IconicMenu Clicked on: ' + item.label);
               }
          },
     ]
});

6 - Nokia WRT Browser Compatibility

 

▴   S60 3.1 S60 3.2 S60 5.0
Iconic Menu NO YES  YES 

 

This page was last modified on 31 July 2012, at 10:29.
37 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×