Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

Miniview

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

Contents

Inheritance

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

1 - Description

The widget miniview component can be used to show a widget's content on the home screen of a mobile device. It allows mobile device users to view dynamic data from several applications simultaneously, without having to launch the applications on full screen.


2 - Visual Design

Miniview01.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.
  • content: string
    • Defines the component content.
  • image: String
    • Defines the image path used in the component
  • style: Object {}
    • Defines the component style. This option is a hash table with CSS properties.

4.2 - Events - Callbacks

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

4.3 - Methods

  • setContent: function(value)
    • Sets the component content.
    • return [void]
  • getContent: function()
    • Gets the component content.
    • return [String]
  • show: function()
    • Shows the component.
    • return [void]
  • hide: function()
    • Hides the component.
    • return [Object]

4.4 - Default options

  • content: "

5 - Component Demo

5.1 HTML

<div id="miniview1"></div>

5.2 Javascript

window.miniview1 = new Nokia.MiniView({
     element: '#miniview1',
     content: 'Lorem Ipsum Dolor Lorem Ipsum Dolor Lorem Ipsum Dolor Lorem Ipsum Dolor Lorem Ipsum Dolor',
     create: function() {
          //alert("Miniview: Create");
     },
     show: function() {
          //alert("Miniview: Show");
     },
     hide: function() {
          //alert("Miniview: Hide");
     }
});

6 - Nokia WRT Browser Compatibility

 

▴   S60 3.1 S60 3.2 S60 5.0
Miniview NO  NO  YES (N97)

 

This page was last modified on 31 July 2012, at 07:30.
51 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.

×