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

DrY TextLabel

Jump to: navigation, search
Article Metadata

Code Example
Article
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:

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

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.


Examples

Component browser at dev.DrJukka.com/DrY/

WRT example at Wiki: DrY TextLabel.zip

Go to DrY Index

116 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