v7.3.0

ScheduleTooltip
Feature

A feature that displays a tooltip containing the time at the mouse position when hovering empty parts of the schedule.

By default, in DayView and WeekView, the time is rounded to the view's increment unless the precise config is set to true.

The example below illustrates how to use this feature in a Calendar instance and add a custom renderer to the tooltip. It shows the time at the pointer position, and if the pointer is outside of the core hours.

It also validates that any event being created or moved does not extend outside of the core hours:

const calendar = new Calendar({
    features : {
        scheduleTooltip : true
    }
});

This feature is disabled by default.

Useful configs

Config Description
renderer Custom content renderer for the tooltip
precise Show precise time instead of snapped to increment
showOnEvents Also show tooltip when hovering events
showScheduleTip Filter which views show the tooltip
anchorToDayCell Anchor tooltip to the day cell instead of following mouse

See also

  • EventTooltip — Tooltip for event bars
  • TimeRanges — Time ranges passed to the tooltip renderer
  • DayView — The primary view type where this tooltip appears
No results

Configs

Configs are options you supply in a configuration object when creating an instance of this class
  • When in a DayView, this config determines whether the tooltip should show the time at the pointer position with a precision of seconds, or rounded to the nearest increment.

    Has a corresponding runtime precise property.

  • This config is used to directly configure the associated Tooltip.

    Has a corresponding runtime tooltip property.

Properties

Properties are getters/setters or publicly accessible variables on this class
  • When in a DayView, this config determines whether the tooltip should show the time at the pointer position with a precision of seconds, or rounded to the nearest increment.

    Has a corresponding precise config.

  • tooltip : Tooltip
    READONLY

    Gets the Tooltip instance that this feature is using.

    Has a corresponding tooltip config.

  • isScheduleTooltip : Booleantrue
    READONLY
    ADVANCED
    Identifies an object as an instance of ScheduleTooltip class, or subclass thereof.

Functions

Functions are methods available for calling on the class
    id: scheduleTooltip

    Source path

    Calendar/feature/ScheduleTooltip.js

    Demo

    examples/tooltips

    Contents