Namespaces
Variants
Actions
Revision as of 13:24, 31 July 2012 by hamishwillee (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Text Link

Jump to: navigation, search
Article Metadata

Article
Created: User:Kbwiki (09 Nov 2009)
Last edited: hamishwillee (31 Jul 2012)

Contents

Inheritance

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

1 - Description

A link to a specific destination.


2 - Visual Design

Textlink01.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.
  • label: string
    • Label content to be included in the component.
  • url: string
    • Defines the component URL address.
  • style: Object {}
    • Defines the component style. This option is a hash table with CSS properties.


4.2 - Events - Callbacks

  • click: function(event, url)
    • Scope: [this.element]
  • create: function()
    • Scope: [this.element]


4.3 - Methods

  • go: function(url)
    • Opens a specific URL address.
    • return [void]

4.4 - Default options

  • url: false
  • label:


5 - Component Demo

5.1 HTML

<a href="#" id="link01">the label will be placed here</a>

5.2 Javascript

var link1 = new Nokia.TextLink({
     element: '#link01'
     label: 'New Link',
     style: {
          color: 'red',
          fontSize: '15px
     },
     create: function() {
          //alert("TextLink: Create");
     },
     click: function() {
          //alert("TextLink: Click");                                           
     }
});


6 - Nokia WRT Browser Compatibility

 

▴   S60 3.1 S60 3.2 S60 5.0
Text Link YES  YES  YES 

 

162 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