Last change
on this file since 435 was
422,
checked in by fpvanagthoven, 12 years ago
|
- Removed missing dependencies.
- Fixed run scripts on Windows.
- Describe install process.
|
File size:
734 bytes
|
Line | |
---|
1 | define([ |
---|
2 | 'dojo/_base/declare', |
---|
3 | 'dijit/_WidgetBase', |
---|
4 | 'dijit/_TemplatedMixin', |
---|
5 | 'dojo/text!./templates/SurveySummary.html' |
---|
6 | ],function(declare,_WidgetBase,_TemplatedMixin,template){ |
---|
7 | return declare([_WidgetBase,_TemplatedMixin],{ |
---|
8 | templateString: template, |
---|
9 | survey: null, |
---|
10 | startup: function() { |
---|
11 | this.inherited(arguments); |
---|
12 | if ( this.survey ) { |
---|
13 | this._setValueAttr(this.survey); |
---|
14 | } |
---|
15 | }, |
---|
16 | _setValueAttr: function(survey) { |
---|
17 | this.titleNode.innerHTML = survey.title; |
---|
18 | this.descriptionNode.innerHTML = survey.description; |
---|
19 | this.questionsNode.innerHTML = (survey.questions || []).length; |
---|
20 | } |
---|
21 | }); |
---|
22 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.