mirror of
https://github.com/xdan/datetimepicker.git
synced 2024-12-08 05:34: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>
|
<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',
|
||||||
}},
|
],
|
||||||
timepicker:false,
|
dayOfWeek:[
|
||||||
format:'d.m.Y'
|
"So.", "Mo", "Di", "Mi",
|
||||||
|
"Do", "Fr", "Sa.",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
timepicker:false,
|
||||||
|
format:'d.m.Y'
|
||||||
});</code></pre>
|
});</code></pre>
|
||||||
<p>Result</p>
|
<p>Result</p>
|
||||||
<p><input id="_datetimepicker1" type="text" value="15.08.2013" /></p>
|
<p><input id="_datetimepicker1" type="text" value="15.08.2013" /></p>
|
||||||
@ -74,9 +81,10 @@ format:'d.m.Y'
|
|||||||
$('#_datetimepicker1').datetimepicker({
|
$('#_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,
|
||||||
format:'d.m.Y'
|
format:'d.m.Y'
|
||||||
@ -109,9 +117,9 @@ $('#_datetimepicker2').datetimepicker({
|
|||||||
<p><input id="_datetimepicker3" type="text" value="10.12.2013 23:45" /></p>
|
<p><input id="_datetimepicker3" type="text" value="10.12.2013 23:45" /></p>
|
||||||
<script>$(function(){
|
<script>$(function(){
|
||||||
$('#_datetimepicker3').datetimepicker({
|
$('#_datetimepicker3').datetimepicker({
|
||||||
format:'d.m.Y H:i',
|
format:'d.m.Y H:i',
|
||||||
inline:true,
|
inline:true,
|
||||||
lang:'en'
|
lang:'en'
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
@ -151,8 +159,11 @@ $('#image_button').click(function(){
|
|||||||
<h4>allowTimes options TimePicker Example</h4>
|
<h4>allowTimes options TimePicker Example</h4>
|
||||||
<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>
|
||||||
@ -175,10 +186,10 @@ $('#_datetimepicker5').datetimepicker({
|
|||||||
<p><input id="_datetimepicker6" type="text" value="" /></p>
|
<p><input id="_datetimepicker6" type="text" value="" /></p>
|
||||||
<script>$(function(){
|
<script>$(function(){
|
||||||
$('#_datetimepicker6').datetimepicker({
|
$('#_datetimepicker6').datetimepicker({
|
||||||
timepicker:false,
|
timepicker:false,
|
||||||
onChangeDateTime:function(current_time,$input){
|
onChangeDateTime:function(current_time,$input){
|
||||||
alert($input.val())
|
alert($input.val())
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
@ -186,10 +197,10 @@ $('#_datetimepicker6').datetimepicker({
|
|||||||
<h4>minDate and maxDate Example</h4>
|
<h4>minDate and maxDate Example</h4>
|
||||||
<p>JavaScript</p>
|
<p>JavaScript</p>
|
||||||
<pre><code data-language="javascript">$('#datetimepicker7').datetimepicker({
|
<pre><code data-language="javascript">$('#datetimepicker7').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