mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-06 16:20:26 +08:00
Create jquery.ui.datetimepicker-tests.ts
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
/// <reference path="../jquery/jquery.d.ts"/>
|
||||
/// <reference path="jquery.ui.datetimepicker.d.ts" />
|
||||
|
||||
// basic no options
|
||||
$('#datetimepicker').datetimepicker({
|
||||
|
||||
});
|
||||
|
||||
// basic with some options
|
||||
$('#datetimepicker').datetimepicker({
|
||||
dateFormat: "yy-mm-dd",
|
||||
timeFormat: 'HH:mm',
|
||||
nextText: "",
|
||||
prevText: ""
|
||||
});
|
||||
|
||||
// function within the plugin
|
||||
$('#datetimepicker').datetimepicker('formatTime', {
|
||||
format: "HH:mm",
|
||||
time: { hours: 1, minutes: 1, seconds: 1 }
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user