Debian Codegraph @

dijit/tests/_BidiSupport/form/test_SimpleTextarea.html

raw symbols SCIP
1 <!DOCTYPE html>
2
3 <html>
4 <head>
5 <meta http-equiv="Content-type" content="text/html; charset=utf-8">
6 <title>SimpleTextarea with _BidiSupport</title>
7
8 <style type="text/css">
9 @import "../../../../dojo/resources/dojo.css";
10 @import "../../../../dijit/themes/claro/claro.css";
11 </style>
12
13 <!-- required: dojo.js -->
14 <script type="text/javascript" src="../../../../dojo/dojo.js"
15 data-dojo-config="parseOnLoad: true, isDebug: true, has: { 'dojo-bidi': true }">
16 </script>
17
18 <script type="text/javascript">
19 dojo.require("dijit.form.SimpleTextarea");
20 </script>
21 </head>
22
23 <body class="claro" style="padding:20px">
24
25 <h1 class="testTitle">SimpleTextarea with _BidiSupport</h1>
26 <p>The value of the textDir setted in all examples, in the text box widget itself.</p>
27 <label for="ltrSimpleTexarea" >
28 <b>I'm a LTR SimpleTextarea </b>
29 </label>
30 <br>
31 <textarea id="ltrSimpleTexarea" data-dojo-type="dijit/form/SimpleTextarea"
32 data-dojo-props='name:"ltrSimpleTexarea",rows:"4", cols:"50",
33 textDir:"ltr"'>Lorem ipsum dolor sit amet, consectetuer adipiscing elit!
34 </textarea>
35 <br>
36 <br>
37 <label for="rtlSimpleTexarea" >
38 <b>I'm a RTL SimpleTextarea </b>
39 </label>
40 <br>
41 <textarea id="rtlSimpleTexarea" data-dojo-type="dijit/form/SimpleTextarea"
42 data-dojo-props='name:"rtlSimpleTexarea",rows:"4", cols:"50",
43 textDir:"rtl"'>Lorem ipsum dolor sit amet, consectetuer adipiscing elit!
44 </textarea>
45 <br>
46 <br>
47 <label for="contextualSimpleTexarea" >
48 <b>I'm a contextual SimpleTexarea </b>
49 </label>
50 <br>
51 <textarea id="contextualSimpleTexarea" data-dojo-type="dijit/form/SimpleTextarea"
52 data-dojo-props='name:"contextualSimpleTexarea",rows:"4", cols:"50",
53 textDir:"auto"
54 '> &#1492;&#1496;&#1511;&#1505;&#1496; &#1502;&#1493;&#1510;&#1490; &#1499;&#1502;&#1493; &#1513;&#1510;&#1512;&#1497;&#1498;
55 &#1493;&#1488;&#1504;&#1497; &#1511;&#1493;&#1504;&#1496;&#1511;&#1505;&#1496;&#1493;&#1488;&#1500;&#1497;!</textarea>
56 <br>
57 <h2>Initially empty and programmatically created - Simple Textareas</h2>
58
59 <label>textDir="ltr":</label>
60 <textarea id="programmaticLTR"></textarea>
61
62 <br>
63 <label>textDir="rtl":</label>
64 <textarea id="programmaticRTL"></textarea>
65
66 <br>
67 <label>textDir="auto":</label>
68 <textarea id="programmaticAuto"></textarea>
69
70 <script type="text/javascript">
71 // See if we can make a widget in script
72 dojo.ready(function(){
73 programmaticTextareaLTR = new dijit.form.SimpleTextarea({
74 id: "programmaticLTR",
75 name: "programmaticTextAreaLTR",
76 cols: "60",
77 textDir:"ltr",
78 value: "",
79 style: "border:5px solid gray;padding:11px;margin:7px;"
80 }, "programmaticLTR");
81
82 programmaticTextareaRTL = new dijit.form.SimpleTextarea({
83 id: "programmaticRTL",
84 name: "programmaticTextAreaRTL",
85 cols: "60",
86 textDir:"rtl",
87 value: "",
88 style: "border:5px solid gray;padding:11px;margin:7px;"
89 }, "programmaticRTL");
90
91 programmaticTextareaAuto = new dijit.form.SimpleTextarea({
92 id: "programmaticAuto",
93 name: "programmaticTextAreaAuto",
94 cols: "60",
95 textDir:"auto",
96 value: "",
97 style: "border:5px solid gray;padding:11px;margin:7px;"
98 }, "programmaticAuto");
99
100 });
101 </script>
102
103 </body>
104 </html>