DevExtreme Vue - Overview
A tooltip is a small pop-up rectangle that displays information about a funnel item if it is pressed or the mouse pointer hovers over it. The information is the item's argument and value by default, but it is possible to display anything in a tooltip.
All options configuring tooltips are collected in the tooltip object. For example, to enable tooltips, assign true to this object's enabled option.
- <template>
- <DxFunnel ... >
- <DxTooltip :enabled="true" />
- </DxFunnel>
- </template>
- <script>
- import DxFunnel, {
- DxTooltip
- } from 'devextreme-vue/funnel';
- export default {
- components: {
- DxFunnel,
- DxTooltip
- }
- }
- </script>
Options declared in the tooltip object apply to all tooltips in the Funnel. If you want to customize a specific tooltip, assign a function to the customizeTooltip option. This function must return an object with options for the tooltip you want to customize.
- <template>
- <DxFunnel ... >
- <DxTooltip
- :enabled="true"
- color="yellow"
- :customize-tooltip="customizeTooltip"
- />
- </DxFunnel>
- </template>
- <script>
- import DxFunnel, {
- DxTooltip
- } from 'devextreme-vue/funnel';
- export default {
- components: {
- DxFunnel,
- DxTooltip
- },
- methods: {
- customizeTooltip (itemInfo) {
- return itemInfo.value > 100 ? { color: 'red' } : { }
- }
- }
- }
- </script>
See Also
If you have technical questions, please create a support ticket in the DevExpress Support Center.