How to Render the Annotation in Angular Progressbar?
Description
This article shows how to render the annotations using the ng-template in Angular Progressbar.
Solution
Adding annotations to a progress bar can be a helpful way to provide additional information or context about the progress being displayed.
You can customize the annotations of the progress bar by setting the HTML div element in the ng-template to the content property of the annotations.
Code Snippet
The following code example shows how to render the annotations using the ng-template.
app.component.html
<ejs-progressbar #progressObj [annotations]='annotations'>
</ejs-progressbar>
app.component.ts
public annotations: Object[] = [
{
content: '<ng-template #template1><div id="point1" style="font-size:20px;font-weight:bold;color:#0078D6;"><span>80%</span></div></ng-template>'
}
];
The following image illustrates the output of the above code.
Conclusion
We hope you enjoyed learning about How to render the annotation using the ng-template in Angular Progressbar.
You can refer to our Angular Progressbar feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started for configuration specifications. You can also explore our Angular Progressbar example to understand how to create and manipulate data.
For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.
If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums, BoldDesk Support, or feedback portal. We are always happy to assist you!