definicao de layout
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
(function($) {
|
||||
"use strict";
|
||||
|
||||
//Minimum Setup
|
||||
$(function () {
|
||||
$('#dt-minimum').datetimepicker();
|
||||
});
|
||||
|
||||
//Using Locales
|
||||
$(function () {
|
||||
$('#dt-local').datetimepicker({
|
||||
locale: 'ru'
|
||||
});
|
||||
});
|
||||
// Time only
|
||||
$(function () {
|
||||
$('#dt-time').datetimepicker({
|
||||
format: 'LT'
|
||||
});
|
||||
});
|
||||
//Date only
|
||||
$(function () {
|
||||
$('#dt-date').datetimepicker({
|
||||
format: 'L'
|
||||
});
|
||||
});
|
||||
//No Icon
|
||||
$(function () {
|
||||
$('#dt-noicon').datetimepicker();
|
||||
});
|
||||
//Enabled/Disabled Dates
|
||||
$(function () {
|
||||
$('#dt-enab-disab-date').datetimepicker({
|
||||
defaultDate: "11/1/2013",
|
||||
disabledDates: [
|
||||
moment("12/25/2013"),
|
||||
new Date(2013, 11 - 1, 21),
|
||||
"11/22/2013 00:53"
|
||||
]
|
||||
});
|
||||
});
|
||||
//view mode
|
||||
$(function () {
|
||||
$('#dt-view').datetimepicker({
|
||||
viewMode: 'years'
|
||||
});
|
||||
});
|
||||
//Disabled Days of the Week
|
||||
$(function () {
|
||||
$('#dt-disab-days').datetimepicker({
|
||||
daysOfWeekDisabled: [0, 6]
|
||||
});
|
||||
});
|
||||
|
||||
})(jQuery);
|
||||
Reference in New Issue
Block a user