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
31
doc.tpl
31
doc.tpl
@ -59,14 +59,21 @@ $(function(){$('#_datetimepicker').datetimepicker();});
|
||||
<p>JavaScript</p>
|
||||
<pre><code data-language="javascript">$('#datetimepicker1').datetimepicker({
|
||||
lang:'de',
|
||||
i18n:{de:{
|
||||
i18n:{
|
||||
de:{
|
||||
months:[
|
||||
'Januar','Februar','März','April','Mai','Juni','Juli','August',
|
||||
'September','Oktober','November','Dezember',],
|
||||
dayOfWeek:["So.", "Mo", "Di", "Mi", "Do", "Fr", "Sa.",],
|
||||
}},
|
||||
timepicker:false,
|
||||
format:'d.m.Y'
|
||||
'Januar','Februar','März','April',
|
||||
'Mai','Juni','Juli','August',
|
||||
'September','Oktober','November','Dezember',
|
||||
],
|
||||
dayOfWeek:[
|
||||
"So.", "Mo", "Di", "Mi",
|
||||
"Do", "Fr", "Sa.",
|
||||
]
|
||||
}
|
||||
},
|
||||
timepicker:false,
|
||||
format:'d.m.Y'
|
||||
});</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">$('#datetimepicker5').datetimepicker({
|
||||
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>
|
||||
<p>Result</p>
|
||||
<p><input id="_datetimepicker5" type="text" value="23:45" /></p>
|
||||
@ -189,7 +200,7 @@ $('#_datetimepicker6').datetimepicker({
|
||||
timepicker:false,
|
||||
formatDate:'Y/m/d',
|
||||
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>
|
||||
<p>Result</p>
|
||||
<p><input id="_datetimepicker7" type="text" value="" /></p>
|
||||
|
Loading…
Reference in New Issue
Block a user