mirror of
https://github.com/xdan/datetimepicker.git
synced 2024-11-18 06:24:22 +00:00
doc update
This commit is contained in:
parent
6bbe31d950
commit
6bb5f7ba6e
27
doc.tpl
27
doc.tpl
@ -59,12 +59,19 @@ $(function(){$('#_datetimepicker').datetimepicker();});
|
|||||||
<p>JavaScript</p>
|
<p>JavaScript</p>
|
||||||
<pre><code data-language="javascript">$('#datetimepicker1').datetimepicker({
|
<pre><code data-language="javascript">$('#datetimepicker1').datetimepicker({
|
||||||
lang:'de',
|
lang:'de',
|
||||||
i18n:{de:{
|
i18n:{
|
||||||
|
de:{
|
||||||
months:[
|
months:[
|
||||||
'Januar','Februar','März','April','Mai','Juni','Juli','August',
|
'Januar','Februar','März','April',
|
||||||
'September','Oktober','November','Dezember',],
|
'Mai','Juni','Juli','August',
|
||||||
dayOfWeek:["So.", "Mo", "Di", "Mi", "Do", "Fr", "Sa.",],
|
'September','Oktober','November','Dezember',
|
||||||
}},
|
],
|
||||||
|
dayOfWeek:[
|
||||||
|
"So.", "Mo", "Di", "Mi",
|
||||||
|
"Do", "Fr", "Sa.",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
timepicker:false,
|
timepicker:false,
|
||||||
format:'d.m.Y'
|
format:'d.m.Y'
|
||||||
});</code></pre>
|
});</code></pre>
|
||||||
@ -75,7 +82,8 @@ $('#_datetimepicker1').datetimepicker({
|
|||||||
lang:'de',
|
lang:'de',
|
||||||
i18n:{de:{
|
i18n:{de:{
|
||||||
months:[
|
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."]
|
dayOfWeek:["So.", "Mo", "Di", "Mi", "Do", "Fr", "Sa."]
|
||||||
}},
|
}},
|
||||||
timepicker:false,
|
timepicker:false,
|
||||||
@ -152,7 +160,10 @@ $('#image_button').click(function(){
|
|||||||
<p>JavaScript</p>
|
<p>JavaScript</p>
|
||||||
<pre><code data-language="javascript">$('#datetimepicker5').datetimepicker({
|
<pre><code data-language="javascript">$('#datetimepicker5').datetimepicker({
|
||||||
datepicker:false,
|
datepicker:false,
|
||||||
allowTimes:['12:00', '13:00', '15:00', '17:00', '17:05', '17:20', '19:00', '20:00']
|
allowTimes:[
|
||||||
|
'12:00', '13:00', '15:00',
|
||||||
|
'17:00', '17:05', '17:20', '19:00', '20:00'
|
||||||
|
]
|
||||||
});</code></pre>
|
});</code></pre>
|
||||||
<p>Result</p>
|
<p>Result</p>
|
||||||
<p><input id="_datetimepicker5" type="text" value="23:45" /></p>
|
<p><input id="_datetimepicker5" type="text" value="23:45" /></p>
|
||||||
@ -189,7 +200,7 @@ $('#_datetimepicker6').datetimepicker({
|
|||||||
timepicker:false,
|
timepicker:false,
|
||||||
formatDate:'Y/m/d',
|
formatDate:'Y/m/d',
|
||||||
minDate:'-1970/01/02',//yesterday is minimum date(for today use 0 or -1970/01/01)
|
minDate:'-1970/01/02',//yesterday is minimum date(for today use 0 or -1970/01/01)
|
||||||
maxDate:'+1970/01/02'//and tommorow is maximum date calendar
|
maxDate:'+1970/01/02'//tommorow is maximum date calendar
|
||||||
});</code></pre>
|
});</code></pre>
|
||||||
<p>Result</p>
|
<p>Result</p>
|
||||||
<p><input id="_datetimepicker7" type="text" value="" /></p>
|
<p><input id="_datetimepicker7" type="text" value="" /></p>
|
||||||
|
Loading…
Reference in New Issue
Block a user