186
|
1 [%
|
194
|
2 META version = 1;
|
|
3 BLOCK INIT;
|
263
|
4 # this is a document scope
|
194
|
5 dojoDefaultClass = 'dijit.form.Input';
|
|
6 dojo.require.push( dojoDefaultClass );
|
|
7 END;
|
|
8 BLOCK CTOR;
|
263
|
9 TPreview = require('My/Org/TextPreview');
|
194
|
10 this.dojoClass = this.dojoClass || dojoDefaultClass;
|
|
11 this.visualClass = this.visualClass || 'classic';
|
238
|
12 this.childNodes = [];
|
194
|
13 FOREACH text IN this.data;
|
238
|
14 this.childNodes.push( TPreview.new('preview', nodeValue = text ) );
|
194
|
15 END;
|
|
16 END;
|
186
|
17 %]
|
194
|
18 <div class="$this.visualClass" data-dojo-type="$this.dojoClass">
|
238
|
19 [% FOREACH node IN this.childNodes %]
|
194
|
20 [% node.Render() %]
|
|
21 <hr />
|
|
22 [% END %]
|
191
|
23 </div> |