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 classProperties
Properties are getters/setters or publicly accessible variables on this class-
Identifies an object as an instance of ScheduleTooltip class, or subclass thereof.
-
Gets the Tooltip instance that this feature is using.
Has a corresponding tooltip config.
-
Identifies an object as an instance of ScheduleTooltip class, or subclass thereof.