jQuery Schedule Time Picker Plugin | schedulerjs

Scheduler Js is a jQuery plugin that lets you display a schedule, moving the time picker within the schedule to find a time when everyone is free.

jquery time picker, jquery time picker 12/24 hour format, simple jquery timepicker, jquery timepicker options, javascript time picker

Dependencies

  • jQuery
  • Hogan.js (from twitter)

How to make use of it:

1. Load the jQuery library and jQuery Scheduler.js on the html page.

<script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
<script src="path/to/scheduler.js"></script>
<link rel="stylesheet" href="src/scheduler.css">

2. Load the required Hogan.js template engine on the page.

<script src="hogan.min.js"></script>

3. Create a container for the schedule.

<div id="scheduler"></div>

4. Add your events in JavaScript as follows.

var list = [
{
    'name': 'Otto',
    'appointments': [
        {'start': '08:05', 'end': '09:00', 'title': 'Event 1'},
        {'start': '08:50', 'end': '10:10', 'title': 'Event 2'}
    ]
},
{
    'name': 'Thornton',
    'appointments': [
        {'start': '12:00', 'end': '13:30', 'title': 'Event 3'},
        {'start': '14:30', 'end': '15:30', 'title': 'Event 4'},
        {'start': '14:00', 'end': '14:30', 'title': 'Event 5'}
    ]
},
{
    'name': 'The Bird',
    'appointments': [
        {'start': '15:00', 'end': '18:30', 'title': 'Event 6'},
        {'start': '06:00', 'end': '14:30', 'title': 'Event 7'}
    ]
}
];

5. Display a table inside the container you just created.

var steps = [
  '08:05',
  '09:00',
  '10:00',
  '11:30',
  '12:05',
  '13:00',
  '14:00',
  '15:00',
  '16:00',
  '17:00'
];

$("#scheduler").schedulerjs({
  'list': list,
  'steps': steps
});

6. Default options.

'pixelsPerHour': 200,
'snapTo': 5,
'steps': ['08:00', '09:00', '10:00', '11:00', '12:00', '13:00', '14:00', '15:00', '16:00'],
'headName': 'Names',
'onClickAppointment': function(){},
'list': []

create responsive schedules with time picker, Schedulerjs Plugin/Github


See Demo And Download

Official Website(magnusjt): Click Here

This superior jQuery/javascript plugin is developed by magnusjt. For extra advanced usage, please go to the official website.

Related Posts

VenoBox-Responsive-jQuery-Lightbox-Plugin

Responsive Image Gallery Lightbox jQuery Plugin | VenoBox

VenoBox is a responsive jQuery modal window plugin suitable for images, embedded content, iFrames, Google Maps, Vimeo, and YouTube videos. The big difference compared to many other…

bootstrap-dropdown-on-hover

[Animation] Bootstrap Multi-Level Responsive Dropdown Menu

Bootstrap-based multi-level dropdown navigation menu with cool animations. The dropdown on Hover is a jQuery plugin used to create Bootstrap multi-level scroll-triggered dropdown menus with CSS3 animations…

Google-Translate-Dropdown-Customize-With-Country-Flag

Google Translate Dropdown Customize With Country Flag | GT API

Flag google translates jQuery text that takes advantage of the Google Cloud Translation API to translate web content between languages by selecting a country from the dropdown…

Bootstrap-Fileinput

HTML 5 File Input Optimized for Bootstrap 4.x./3.x with File Preview | Bootstrap Fileinput

bootstrap-fileinput is an improved HTML 5 file input  Bootstrap 5.x, 4.x and 3.x with file preview for different files, provides multiple selections, resumable section uploads, and more….

HStack-and-VStack-in-CSS

CSS Layout Components Horizontal/Vertical Stack | HStack and VStack

HStack and VStack in CSS – CSS layout components that (basically) stack anything horizontally and vertically. A pure CSS library that makes it easy to stack elements…

Floating-Whatsapp-Chat-Button

How to Add Floating Whatsapp Chat Button In HTML | venom-button

Venom Button is a very simple plugin for the jQuery floating WhatsApp button. Adds a floating button to your site that calls WhatsApp Click to Chat API. It will automatically start the WhatsApp…

Leave a Reply

Your email address will not be published. Required fields are marked *