dashboard-js-devexpress-dot-dashboard-d03f877d.md
A toolbar item’s tooltip.
export interface ViewerToolbarItemTooltip
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:
tooltip: {
className: "custom-tooltip",
template: function(contentElement) {
return $('<div/>').text('Custom Tooltip');
},
}
Specifies a CSS class name used to customize a tooltip.
className?: string
| Type | Description |
|---|---|
| string |
A CSS class name used to customize a tooltip.
|
Specifies a template used to customize a tooltip.
template?: (contentElement: DevExpress.Dashboard.DxElement) => JQuery | Element | string
| Type |
|---|
| (contentElement: DxElement) => string |
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.