Back to Devexpress

ViewerToolbarItemTooltip Interface

dashboard-js-devexpress-dot-dashboard-d03f877d.md

latest1.8 KB
Original Source

ViewerToolbarItemTooltip Interface

A toolbar item’s tooltip.

Declaration

ts
export interface ViewerToolbarItemTooltip

Remarks

The ViewerToolbarItem.tooltip property displays a customized popup hint with additional information about the item being hovered over. You can create a specified ViewerToolbarItemTooltip.template to display a complex tooltip.

The following code snippet shows how to add a tooltip with a specified template and the “custom-tooltip” CSS class:

javascript
tooltip: {
    className: "custom-tooltip",
    template: function(contentElement) {
        return $('<div/>').text('Custom Tooltip');
    },
}

Properties

className Property

Specifies a CSS class name used to customize a tooltip.

Declaration

ts
className?: string

Property Value

TypeDescription
string

A CSS class name used to customize a tooltip.

|

template Property

Specifies a template used to customize a tooltip.

Declaration

ts
template?: (contentElement: DevExpress.Dashboard.DxElement) => JQuery | Element | string

Property Value

Type
(contentElement: DxElement) => string

Remarks

The ViewerToolbarItem.tooltip property displays a customized popup hint with additional information about the item being hovered over. You can create a specified template to display a complex tooltip.