Miscellaneous

19 Apr 20178 minutes to read

Time Indicator

The current system time can be depicted in a scheduler with an indication of a piece of text displaying the time over a horizontal line across today’s date (Vertical Scheduler mode). In Horizontal mode, the time indicator is displayed as a small vertical line within the header time cells (depicting current time).

It is enabled by default in Scheduler and to hide it, showCurrentTimeIndicator property needs to be set as false as shown below.

  • HTML
  • <!--Container for ejScheduler widget-->
    <div id="Schedule1"></div>
    
    <script type="text/javascript">
    $(function() {
        $("#Schedule1").ejSchedule({
            currentDate: new Date(2015, 11, 2),
            showCurrentTimeIndicator: false,
            appointmentSettings: {
                dataSource: [{
                    Id: 100,
                    Subject: "Research on Sky Miracles",
                    StartTime: new Date(2015, 11, 2, 9, 00),
                    EndTime: new Date(2015, 11, 2, 10, 30)
                }]
            }
        });
    });
    </script>

    NOTE

    When Scheduler rendered with multiple resources, multiple time indicators are displayed in Vertical mode – whereas single indicator displays for horizontal mode.

    Show/Hide All-Day Row

    The All-day row cell is a single row region displayed at the top of the work cells area to hold the all-day appointments together. The Scheduler displays it by default and if it needs to be hidden, the showAllDayRow property can be set to false as shown below.

  • HTML
  • <!--Container for ejScheduler widget-->
    <div id="Schedule1"></div>
    
    <script type="text/javascript">
    $(function() {
        $("#Schedule1").ejSchedule({
            currentDate: new Date(2015, 11, 2),
            showAllDayRow: false,
            appointmentSettings: {
                dataSource: [{
                    Id: 100,
                    Subject: "Research on Sky Miracles",
                    StartTime: new Date(2015, 11, 2, 9, 00),
                    EndTime: new Date(2015, 11, 2, 10, 30)
                }]
            }
        });
    });
    </script>

    NOTE

    The All-day row expands vertically, whenever more number of appointments are populated in one or more days.

    Show/Hide Header bar

    The header bar is the top most region of the Scheduler which includes the date navigation icons and view navigation options – and also shown on the Scheduler by default. To hide the header bar, set the showHeaderBar property to false as shown below.

  • HTML
  • <!--Container for ejScheduler widget-->
    <div id="Schedule1"></div>
    
    <script type="text/javascript">
    $(function() {
        $("#Schedule1").ejSchedule({
            currentDate: new Date(2015, 11, 2),
            showHeaderBar: false,
            appointmentSettings: {
                dataSource: [{
                    Id: 100,
                    Subject: "Research on Sky Miracles",
                    StartTime: new Date(2015, 11, 2, 9, 00),
                    EndTime: new Date(2015, 11, 2, 10, 30)
                }]
            }
        });
    });
    </script>

    Show/Hide TimeScale

    The TimeScale is the left most region of the Scheduler in vertical mode and the same is displayed at the top position in horizontal mode. It depicts the time interval either in a 12 or 24 hour mode. By default, the timeScale is displayed in the Scheduler and in order to hide it – set the showTimeScale option to false as shown below.

  • HTML
  • <!--Container for ejScheduler widget-->
    <div id="Schedule1"></div>
    
    <script type="text/javascript">
    $(function() {
        $("#Schedule1").ejSchedule({
            currentDate: new Date(2015, 11, 2),
            showTimeScale: false,
            appointmentSettings: {
                dataSource: [{
                    Id: 100,
                    Subject: "Research on Sky Miracles",
                    StartTime: new Date(2015, 11, 2, 9, 00),
                    EndTime: new Date(2015, 11, 2, 10, 30)
                }]
            }
        });
    });
    </script>

    Show/Hide Location Field

    The Location field in the default appointment window can be displayed or hidden from it using the showLocationField property. By default, this property is set to false. To display the location option in the appointment window, then set showLocationField to true and also bind the appropriate field to the location property within the appointmentSettings as shown below.

  • HTML
  • <!--Container for ejScheduler widget-->
    <div id="Schedule1"></div>
    
    <script type="text/javascript">
    $(function() {
        $("#Schedule1").ejSchedule({
            currentDate: new Date(2015, 11, 2),
            showLocationField: true,
            appointmentSettings: {
                location: "EventLocation",
                dataSource: [{
                    Id: 100,
                    Subject: "Research on Sky Miracles",
                    StartTime: new Date(2015, 11, 2, 9, 00),
                    EndTime: new Date(2015, 11, 2, 10, 30),
                    EventLocation: "RDU"
                }]
            }
        });
    });
    </script>