doc update

This commit is contained in:
Valeriy Chupurnov 2013-11-28 01:57:15 +06:00
parent 6bbe31d950
commit 6bb5f7ba6e

31
doc.tpl
View File

@ -59,14 +59,21 @@ $(function(){$('#_datetimepicker').datetimepicker();});
<p>JavaScript</p>
<pre><code data-language="javascript">$(&#39;#datetimepicker1&#39;).datetimepicker({
lang:&#39;de&#39;,
i18n:{de:{
i18n:{
de:{
months:[
&#39;Januar&#39;,&#39;Februar&#39;,&#39;M&auml;rz&#39;,&#39;April&#39;,&#39;Mai&#39;,&#39;Juni&#39;,&#39;Juli&#39;,&#39;August&#39;,
&#39;September&#39;,&#39;Oktober&#39;,&#39;November&#39;,&#39;Dezember&#39;,],
dayOfWeek:[&quot;So.&quot;, &quot;Mo&quot;, &quot;Di&quot;, &quot;Mi&quot;, &quot;Do&quot;, &quot;Fr&quot;, &quot;Sa.&quot;,],
}},
timepicker:false,
format:&#39;d.m.Y&#39;
&#39;Januar&#39;,&#39;Februar&#39;,&#39;M&auml;rz&#39;,&#39;April&#39;,
&#39;Mai&#39;,&#39;Juni&#39;,&#39;Juli&#39;,&#39;August&#39;,
&#39;September&#39;,&#39;Oktober&#39;,&#39;November&#39;,&#39;Dezember&#39;,
],
dayOfWeek:[
&quot;So.&quot;, &quot;Mo&quot;, &quot;Di&quot;, &quot;Mi&quot;,
&quot;Do&quot;, &quot;Fr&quot;, &quot;Sa.&quot;,
]
}
},
timepicker:false,
format:&#39;d.m.Y&#39;
});</code></pre>
<p>Result</p>
<p><input id="_datetimepicker1" type="text" value="15.08.2013" /></p>
@ -75,7 +82,8 @@ $('#_datetimepicker1').datetimepicker({
lang:'de',
i18n:{de:{
months:[
'Januar','Februar','Marz','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'],
'Januar','Februar','Marz','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'
],
dayOfWeek:["So.", "Mo", "Di", "Mi", "Do", "Fr", "Sa."]
}},
timepicker:false,
@ -152,7 +160,10 @@ $('#image_button').click(function(){
<p>JavaScript</p>
<pre><code data-language="javascript">$(&#39;#datetimepicker5&#39;).datetimepicker({
datepicker:false,
allowTimes:[&#39;12:00&#39;, &#39;13:00&#39;, &#39;15:00&#39;, &#39;17:00&#39;, &#39;17:05&#39;, &#39;17:20&#39;, &#39;19:00&#39;, &#39;20:00&#39;]
allowTimes:[
&#39;12:00&#39;, &#39;13:00&#39;, &#39;15:00&#39;,
&#39;17:00&#39;, &#39;17:05&#39;, &#39;17:20&#39;, &#39;19:00&#39;, &#39;20:00&#39;
]
});</code></pre>
<p>Result</p>
<p><input id="_datetimepicker5" type="text" value="23:45" /></p>
@ -189,7 +200,7 @@ $('#_datetimepicker6').datetimepicker({
timepicker:false,
formatDate:&#39;Y/m/d&#39;,
minDate:&#39;-1970/01/02&#39;,//yesterday is minimum date(for today use 0 or -1970/01/01)
maxDate:&#39;+1970/01/02&#39;//and tommorow is maximum date calendar
maxDate:&#39;+1970/01/02&#39;//tommorow is maximum date calendar
});</code></pre>
<p>Result</p>
<p><input id="_datetimepicker7" type="text" value="" /></p>