EventTip

Displays a tooltip containing extra info and options on either event click or event hover.

See the EventTooltip feature for more information and an example of customizing the displayed event tooltip.

The EventTip is provided with two standard tools:

  • edit - A tool which is linked to the EventEdit feature to initiate editing when clicked.
  • delete - A tool which removes the current event record function of the active view to enable event deletion.

New tools may be added, or properties of existing tools may be changed by configuring the EventTooltip feature.

Content may be customized using the titleRenderer and renderer which may create complex content by returning a DomConfig:

    features : {
        eventTooltip : {
            tools : {
                // Just override handler of existing tool - all else is OK
                edit : {
                    handler : () => console.log(`Handle editing ${this.eventRecord.name} our way`);
                },
                // Add a new tool for our own operation
                newTool : {
                    cls     : 'b-icon-add',
                    tooltip : 'Test',
                    handler() {
                        console.log(`Test ${this.eventRecord.name}`);
                    }
                }
            },
            renderer({ eventRecord }) {
                return {
                    text : `From ${DateHelper.format(eventRecord.startDate, 'l')} to ${DateHelper.format(eventRecord.endDate, 'l')}`
                },
            },
            titleRenderer( eventRecord ) {
                return {
                    text      : `${eventRecord.name} ${eventRecord.resource.name}`,
                    className : {
                        'b-urgent'    : eventRecord.isUrgent,
                        'b-completed' : eventRecord.isCompleted
                    }
                };
            }
        }
    }

Configs

141

Common

listenersEvents

Other

dateFormat: String | function= ll

A DateHelper format string/function used to format dates displayed in this tooltip.

ParameterTypeDescription
dateDate

The date to format.

Returns: String -

The formatted date.

The event record for this tip to display

By default, the end date of an all day event is displayed in the tooltip UI as the last calendar date on which the event falls. For most end users, this is the expected value.

Technically, the endDate is a timestamp which represents the exact point in time at which an event ends. To use this instead, configure extendAllDayEndDay as true.

To be clear, this would mean that an allDay event starting and ending on the 7th of February 2020, would show the end date in the tooltip as 8th of February 2020.

renderer: function | StringAlso a property

A function, or name of a function in the ownership hierarchy which is used to create the content of the tooltip's body.

ParameterTypeDescription
dataObject

Contextual data about the current tooltip activation

data.activeTargetHTMLElement

The event bar element being aligned to

data.eventRecordEventModel

The event record

data.eventEvent

The DOM event which initiated the tooltip show

data.tipEventTip

The tooltip instance being shown

Returns: String | DomConfig -

The content of the body element.

By default, if the tip's target event is in a cluster of overlapping events and therefore narrow, activating the tip will expand it to full width temporarily.

Configure this as false to disable this.

timeFormat: String | function= 'LST'

A DateHelper format string/function used to format the time displayed in this tooltip.

ParameterTypeDescription
dateDate

The date to format.

Returns: String -

The formatted date.

titleRenderer: function | StringAlso a property

A function, or name of a function in the ownership hierarchy which is used to create the content of the tooltip's header.

ParameterTypeDescription
eventRecordEventModel

The event record

Returns: String | DomConfig -

The content of the header element.

allowOverTooltip
autoCloseTooltip
autoHideTooltip
autoShowTooltip
columnWidget
defaultFocusContainer
drawerPanel
forElementTooltip
getHtmlTooltip
hideDelayTooltip
hoverDelayTooltip
labelPositionContainer
loadingMsgTooltip
modalPopup
renditionTooltip
resizableResizable
rtlRTL
spanWidget
trackMouseTooltip

Accessibility

ariaLabelWidget
keyMapKeyMap

Content

bbarPanel
defaultsContainer
footerPanel
headerPanel
itemsContainer
lazyItemsContainer
namedItemsContainer
stripsPanel
tbarPanel
textContentContainer
toolsPanel

CSS

bodyClsPanel
borderContainer
clsWidget
colorWidget
htmlClsWidget
itemClsContainer
styleWidget
uiPanel

DOM

adoptWidget
appendToWidget
contentWidget
datasetWidget
htmlWidget
idWidget
tagWidget

Float & align

alignWidget
anchorWidget
centeredWidget
floatingWidget
xWidget
yWidget

Layout

alignSelfWidget
dockWidget
flexWidget
heightWidget
hiddenWidget
hideWhenEmptyContainer
layoutContainer
layoutStyleContainer
marginWidget
maxHeightWidget
maxWidthWidget
minHeightWidget
minWidthWidget
textAlignWidget
weightWidget
widthWidget

misc

tabBarItemsContainer

Misc

dataFieldWidget
disabledWidget
iconPanel
localeClassLocalizable
localizableLocalizable
maskedWidget
ownerWidget
readOnlyWidget
refWidget
rippleWidget
tabWidget
titlePanel
tooltipWidget

Record

recordContainer

Scrolling

State

stateIdState

Properties

110

Class hierarchy

isEventTip: Boolean= truereadonly
Identifies an object as an instance of EventTip class, or subclass thereof.
isEventTip: Boolean= truereadonlystatic
Identifies an object as an instance of EventTip class, or subclass thereof.
isContainerContainer
isDelayableDelayable
isEventsEvents
isKeyMapKeyMap
isLocalizableLocalizable
isPanelPanel
isPopupPopup
isResizableResizable
isStateState
isToolableToolable
isTooltipTooltip
isWidgetWidget

Other

The event which the tooltip feature has been shown for.

The event which the tooltip feature has been activated for.

By default, the end date of an all day event is displayed in the tooltip UI as the last calendar date on which the event falls. For most end users, this is the expected value.

Technically, the endDate is a timestamp which represents the exact point in time at which an event ends. To use this instead, configure extendAllDayEndDay as true.

To be clear, this would mean that an allDay event starting and ending on the 7th of February 2020, would show the end date in the tooltip as 8th of February 2020.

renderer: function | StringAlso a config

A function, or name of a function in the ownership hierarchy which is used to create the content of the tooltip's body.

ParameterTypeDescription
dataObject

Contextual data about the current tooltip activation

data.activeTargetHTMLElement

The event bar element being aligned to

data.eventRecordEventModel

The event record

data.eventEvent

The DOM event which initiated the tooltip show

data.tipEventTip

The tooltip instance being shown

Returns: String | DomConfig -

The content of the body element.

By default, if the tip's target event is in a cluster of overlapping events and therefore narrow, activating the tip will expand it to full width temporarily.

Configure this as false to disable this.

titleRenderer: function | StringAlso a config

A function, or name of a function in the ownership hierarchy which is used to create the content of the tooltip's header.

ParameterTypeDescription
eventRecordEventModel

The event record

Returns: String | DomConfig -

The content of the header element.

$namestaticWidget
columnWidget
currentOverElementstaticTooltip
firstItemContainer
hasChangesContainer
hoverDelayTooltip
isValidContainer
itemsContainer
labelPositionContainer
lastItemContainer
renditionTooltip
resizableResizable
rtlRTL
showOverflowstaticTooltip
spanWidget
toolsPanel
typestaticWidget
valuesContainer

Accessibility

keyMapKeyMap

Content

bbarPanel
tbarPanel

CSS

clsWidget

DOM

appendToWidget
contentWidget
datasetWidget
elementWidget
htmlTooltip
idWidget
styleWidget

Float & align

xWidget
yWidget

Layout

alignSelfWidget
flexWidget
heightWidget
layoutContainer
layoutStyleContainer
marginWidget
maxHeightWidget
maxWidthWidget
minHeightWidget
minWidthWidget
widthWidget

Lifecycle

configBase

Misc

cellInfoWidget
disabledWidget
localeHelperLocalizable
localeManagerLocalizable
readOnlyWidget
refWidget
tabWidget
titlePanel
tooltipWidget

Record

recordContainer

State

stateState

Visibility

hiddenWidget
isVisibleWidget

Widget hierarchy

ownerWidget
parentWidget
widgetMapContainer

Functions

76

Configuration

applyDefaultsstaticBase

Events

Float & align

alignToWidget
setXYWidget
showByWidget
toFrontWidget

Lifecycle

createstaticWidget
destroystaticBase
initClassstaticWidget

Misc

attachTooltipstaticWidget
fromElementstaticWidget
fromSelectorstaticWidget
getByIdstaticWidget
isOfTypeNamestaticBase
mixinstaticBase
optionalLstaticLocalizable

Other

addContainer
closePopup
composeWidget
createOnFrameDelayable
disableWidget
enableWidget
focusWidget
getAtContainer
getWidgetByIdContainer
insertContainer
LstaticLocalizable
maskWidget
onEvents
recomposeWidget
relayAllEvents
removeContainer
removeAllContainer
resetValuesContainer
setValuesContainer
triggerEvents
unEvents
unmaskWidget

State

Visibility

hideWidget
showWidget

Widget hierarchy

closestWidget
containsWidget
ownsWidget
queryWidget
queryAllWidget
upWidget

Events

23

Event handlers

23

Typedefs

7

CSS variables

73