TooltipBase
Base class for EventTooltip (Scheduler) and TaskTooltip (Gantt) features. Shows a tooltip next to an event bar
in the timeline.
Configs
12
Configs
12Misc
Specify true to have tooltip updated when mouse moves, if you for example want to display date at mouse position.
Other
The time (in milliseconds) for which the Tooltip remains visible when the mouse leaves the target.
May be configured as false to persist visible after the mouse exits the target element. Configure it
as 0 to always retrigger hoverDelay even when moving mouse inside fromElement
The amount of time to hover before showing
Properties
16
Properties
16Common
Class hierarchy
Misc
A reference to the tooltip instance, which will have a special eventRecord property that
you can use to get data from the contextual event record to which this tooltip is related.
Other
Functions
28
Functions
28Configuration
Events
Misc
Other
Events
7
Events
7Triggered before a tooltip is shown. Return false to prevent the action.
// Adding a listener using the "on" method
tooltipBase.on('beforeShow', ({ source, source.eventRecord }) => {
});| Parameter | Type | Description |
|---|---|---|
source | Tooltip | Object | The tooltip being shown. |
source.eventRecord | EventModel | The event record. |
Triggered after a tooltip is shown.
// Adding a listener using the "on" method
tooltipBase.on('show', ({ source, source.eventRecord }) => {
});| Parameter | Type | Description |
|---|---|---|
source | Tooltip | Object | The tooltip. |
source.eventRecord | EventModel | The event record. |
Event handlers
7
Event handlers
7Called before a tooltip is shown. Return false to prevent the action.
new TooltipBase({
onBeforeShow({ source }) {
}
});| Parameter | Type | Description |
|---|---|---|
source | Tooltip | Object | The tooltip being shown. |
source.eventRecord | EventModel | The event record. |
Called after a tooltip is shown.
new TooltipBase({
onShow({ source }) {
}
});| Parameter | Type | Description |
|---|---|---|
source | Tooltip | Object | The tooltip. |
source.eventRecord | EventModel | The event record. |