Tooltip in ASP.NET CORE ProgressBar Component
3 Apr 20231 minute to read
Tooltip
The tooltip for the progress bar is used to represent the progress value. During the initial load, it can be enabled by using the enable
property. The showTooltipOnHover
property can show the tooltip on mouseover.
<ejs-progressbar id="lineardeterminate" type='Linear' height='90' value=90>
<e-progressbar-animation enable=true duration=2000 delay=0></e-progressbar-animation>
<e-progressbar-tooltipsettings enable="true"></e-progressbar-tooltipsettings>
</ejs-progressbar>
Format
By default, the tooltip shows information about progress. In addition to that, show more information in the tooltip using the format
property.
<ejs-progressbar id="lineardeterminate" type='Linear' height='90' value=90>
<e-progressbar-animation enable=true duration=2000 delay=0></e-progressbar-animation>
<e-progressbar-tooltipsettings enable="true" format="Progress: ${value}"></e-progressbar-tooltipsettings>
</ejs-progressbar>
Customization
The Fill
and Border
properties are used to customize the background color and border of the tooltip respectively. The TextStyle
property in the tooltip is used to customize the font of the tooltip text.
<ejs-progressbar id="lineardeterminate" type='Linear' height='90' value=90>
<e-progressbar-animation enable=true duration=2000 delay=0></e-progressbar-animation>
<e-progressbar-tooltipsettings enable="true" format="Progress: ${value}">
<e-tooltipsettings-textstyle fontWeight="900" size="15px" color="red" fontFamily="Roboto" fontStyle="Italic"></e-tooltipsettings-textstyle>
</e-progressbar-tooltipsettings>
</ejs-progressbar>