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