-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
data-parentelement For Initializing Multiple Pickers
Added parentelement data attribute for initializing multiple pickers with different properties on a single page. This functionality was aleady their but it had to be included in DateTimePicker plugin initialization code.
- Loading branch information
Showing
48 changed files
with
176 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
<!DOCTYPE html> | ||
|
||
<html> | ||
|
||
<head> | ||
|
||
<title>Basic Examples -- Elements Group</title> | ||
|
||
<link rel="stylesheet" type="text/css" href="../src/DateTimePicker.css" /> | ||
|
||
<script type="text/javascript" src="jquery-1.11.0.min.js"></script> | ||
<script type="text/javascript" src="../src/DateTimePicker.js"></script> | ||
|
||
<!--[if lt IE 9]> | ||
<link rel="stylesheet" type="text/css" href="../src/DateTimePicker-ltie9.css" /> | ||
<script type="text/javascript" src="../src/DateTimePicker-ltie9.js"></script> | ||
<![endif]--> | ||
|
||
<style type="text/css"> | ||
|
||
p | ||
{ | ||
margin-left: 20px; | ||
} | ||
|
||
input | ||
{ | ||
width: 200px; | ||
padding: 10px; | ||
margin-left: 20px; | ||
margin-bottom: 20px; | ||
} | ||
|
||
.group1 | ||
{ | ||
border: 1px solid skyblue; | ||
margin: 20px; | ||
border-radius: 3px; | ||
} | ||
|
||
.group2 | ||
{ | ||
border: 1px solid orange; | ||
margin: 20px; | ||
border-radius: 3px; | ||
} | ||
|
||
</style> | ||
|
||
</head> | ||
|
||
<body> | ||
|
||
<div class="group1"> | ||
|
||
<!------------------------ Date Picker ------------------------> | ||
<p>Date : </p> | ||
<input type="text" data-field="date" readonly> | ||
|
||
<!------------------------ Time Picker ------------------------> | ||
<p>Time : </p> | ||
<input type="text" data-field="time" readonly> | ||
|
||
<!---------------------- DateTime Picker ----------------------> | ||
<p>DateTime : </p> | ||
<input type="text" data-field="datetime" readonly> | ||
|
||
</div> | ||
|
||
<div class="group2"> | ||
|
||
<!------------------------ Date Picker ------------------------> | ||
<p>Date : </p> | ||
<input type="text" data-field="date" readonly> | ||
|
||
<!------------------------ Time Picker ------------------------> | ||
<p>Time : </p> | ||
<input type="text" data-field="time" readonly> | ||
|
||
<!---------------------- DateTime Picker ----------------------> | ||
<p>DateTime : </p> | ||
<input type="text" data-field="datetime" readonly> | ||
|
||
</div> | ||
|
||
<div id="dtBox1" data-parentelement=".group1"></div> | ||
|
||
<div id="dtBox2" data-parentelement=".group2"></div> | ||
|
||
<script type="text/javascript"> | ||
|
||
$(document).ready(function() | ||
{ | ||
|
||
$("#dtBox1").DateTimePicker( | ||
{ | ||
|
||
}); | ||
|
||
$("#dtBox2").DateTimePicker( | ||
{ | ||
dateFormat: "dd-MMM-yyyy" | ||
}); | ||
|
||
}); | ||
|
||
</script> | ||
|
||
|
||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.