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
57
doc.tpl
57
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>
|
||||
@ -74,9 +81,10 @@ format:'d.m.Y'
|
||||
$('#_datetimepicker1').datetimepicker({
|
||||
lang:'de',
|
||||
i18n:{de:{
|
||||
months:[
|
||||
'Januar','Februar','Marz','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'],
|
||||
dayOfWeek:["So.", "Mo", "Di", "Mi", "Do", "Fr", "Sa."]
|
||||
months:[
|
||||
'Januar','Februar','Marz','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'
|
||||
],
|
||||
dayOfWeek:["So.", "Mo", "Di", "Mi", "Do", "Fr", "Sa."]
|
||||
}},
|
||||
timepicker:false,
|
||||
format:'d.m.Y'
|
||||
@ -109,9 +117,9 @@ $('#_datetimepicker2').datetimepicker({
|
||||
<p><input id="_datetimepicker3" type="text" value="10.12.2013 23:45" /></p>
|
||||
<script>$(function(){
|
||||
$('#_datetimepicker3').datetimepicker({
|
||||
format:'d.m.Y H:i',
|
||||
inline:true,
|
||||
lang:'en'
|
||||
format:'d.m.Y H:i',
|
||||
inline:true,
|
||||
lang:'en'
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@ -151,8 +159,11 @@ $('#image_button').click(function(){
|
||||
<h4>allowTimes options TimePicker Example</h4>
|
||||
<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']
|
||||
datepicker:false,
|
||||
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>
|
||||
@ -175,10 +186,10 @@ $('#_datetimepicker5').datetimepicker({
|
||||
<p><input id="_datetimepicker6" type="text" value="" /></p>
|
||||
<script>$(function(){
|
||||
$('#_datetimepicker6').datetimepicker({
|
||||
timepicker:false,
|
||||
onChangeDateTime:function(current_time,$input){
|
||||
alert($input.val())
|
||||
}
|
||||
timepicker:false,
|
||||
onChangeDateTime:function(current_time,$input){
|
||||
alert($input.val())
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@ -186,10 +197,10 @@ $('#_datetimepicker6').datetimepicker({
|
||||
<h4>minDate and maxDate Example</h4>
|
||||
<p>JavaScript</p>
|
||||
<pre><code data-language="javascript">$('#datetimepicker7').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
|
||||
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'//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