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. Thanks for all your past and future contributions.

DrY TextLabel

From Wiki
Jump to: navigation, search
Article Metadata
Code ExampleArticle
Created: symbianyucca (16 May 2010)
Last edited: hamishwillee (05 Jul 2012)
DrY TextLabel component is based on Guarana TextLabel implementation, and basically it implements same functionality as the Guarana TextLabel component does.

Following code snipped shows how it can be used:

var label1 = new dry.TextLabel({
style: {
width: 300,
height: 250,
fontSize: '15px',
padding: '10px',
lineHeight: '35px'
styleTweaker: styleTweaker},

The constructor takes 3 items, where the last one is the name for the div where the Rating is placed in. The second last is styleTweaker for handling the themes and the first argument is a struct defining a style struct with following properties:

  • width: width for the label,
  • height: height for the label,
  • fontSize: size of the font,
  • padding: padding for the label,
  • lineHeight: line height for the label.


Component browser at

WRT example at Wiki: DrY

Go to DrY Index

This page was last modified on 5 July 2012, at 03:46.
33 page views in the last 30 days.