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';
|
|
11 FOREACH text IN this.data;
|
|
12 append(TPreview.new('preview', nodeValue = text ));
|
|
13 END;
|
|
14 END;
|
186
|
15 %]
|
194
|
16 <div class="$this.visualClass" data-dojo-type="$this.dojoClass">
|
|
17 [% FOREACH node IN select('preview') %]
|
|
18 [% node.Render() %]
|
|
19 <hr />
|
|
20 [% END %]
|
191
|
21 </div> |