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