DrY Rating
Article Metadata
Code Example
Source file: Media:DrY Rating.zip
Article
Created: symbianyucca
(16 May 2010)
Last edited: hamishwillee
(05 Jul 2012)
Following code snipped shows how it can be used:
dojo.require("dry.Rating");
var hw = new dry.Rating( {
value: 2,
styleTweaker: styleTweaker,
change:ratingChanged},
'controlDiv');The constructor takes 2 items, where the second one is the name for the div where the Rating is placed in. The first argument is a struct defining the Rating properties and callback functions:
- value: initial value set fort he ratings,
- change: callback called when ratings value has changed,
- styleTweaker: styleTweaker for handling the themes.
Examples
Component browser at dev.DrJukka.com/DrY/
WRT example at Wiki: DrY Rating.zip


(no comments yet)