Time Picker Plugin jQuery chungTimePicker - Download Minimal Clean Time Picker Plugin - jQuery chungTimePicker

Download Minimal Clean Time Picker Plugin – jQuery chungTimePicker

Posted on

This time I will share jQuery Plugin and tutorial about Minimal Clean Time Picker Plugin – jQuery chungTimePicker, hope it will help you in programming stack.

Time Picker Plugin jQuery chungTimePicker - Download Minimal Clean Time Picker Plugin - jQuery chungTimePicker

File Size: 18.7 KB
Views Total: 4791
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

chungTimePicker is a jQuery time picker plugin that provides an easy and intuitive way to select hours and minutes from an inline time selection interface.

How to use it:

1. Include the jQuery chungTimePicker plugin’s stylesheet in the header of the html document.

1 <link rel="stylesheet" href="chung-timepicker.css">

2. Include jQuery library and the jQuery chungTimePicker plugin’s script at the bottom of the document but before we close the body tag.

2         integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN"
3         crossorigin="anonymous">
4 </script>
5 <script src="chung-timepicker.js"></script>

3. Create a normal input field for the time picker.

1 <input type="text" id="demo" value="10:20">

4. Call the function on the input field and done.

1 $('#demo').chungTimePicker();

5. Change the default timepicker view.

1 $('#demo').chungTimePicker({
2   viewType: 1
3 });

6. Specify how many entries per row.

1 $('#demo').chungTimePicker({
2   rowCount: 6
3 });

7. Default callback.

1 $('#demo').chungTimePicker({
2   callback: function(e) {
3     // triggered after selecting
4   }
5 });

8. Cancel callback.

1 $('#demo').chungTimePicker({
2   cancelCallback: function(e) {
3     // triggered after cancel
4   }
5 });

9. Clear callback.

1 $('#demo').chungTimePicker({
2   clearCallback: function(e) {
3     // triggered after clear
4   }
5 });

10. Confirm callback.

1 $('#demo').chungTimePicker({
2   confirmCallback: function(e) {
3     // triggered after confirm
4   }
5 });

This awesome jQuery plugin is developed by zhongjinglin. For more Advanced Usages, please check the demo page or visit the official website.

source : jqueryscript.net