The Angular Badge is a pure CSS component used to add notifications, messages, or statuses in different shapes and sizes. The Badge component can be easily integrated with ListView, Avatar, and other container controls.
The CSS Badge displays unread notification counts in different colors to indicate their priority level.
Create clickable link badges using the link CSS badge variant with an anchor element. It has hover and focus states.
Create badges that overlap with profile icons or images, similar to social media notification count badges.
The notification badge can be positioned at the top or bottom of profile icons or images. It is placed at the top by default.
Eight predefined contextual color variants are available for badges.
The CSS Badge control supports six different styles: default, circle, pill, notification, ghost, and dot.
Completely customize the CSS Badge attributes, like dimensions and colors.
Integrate the Angular Badge into various components to achieve different UIs, such as displaying the number of unread messages in an email category or the status of product support.
Easily get started with Angular Badge using a few simple lines of HTML and TS code, as demonstrated below. Also explore our Angular Badge example that shows you how to render the Angular Badge.
<div class="col-lg-12 control-section">
<div class="sample_container badge-list">
<ejs-listview id='lists' [dataSource]='dataSource' [fields]='fields' headerTitle='Inbox' [showHeader]='true' (actionComplete)="onActionComplete()">
<ng-template #template let-dataSource="">
<div class="listWrapper" style="width: inherit;height: inherit;">
<span class=" list_svg"> </span>
<span class="list_text"> </span>
<span class=""></span>
</div>
</ng-template>
</ejs-listview>
</div>
</div>
import { Component, ViewEncapsulation, Inject, ViewChild } from '@angular/core';
import * as dataSource from './dataSource.json';
/**
* Sample for CSS Basic Layout Badge
*/
@Component({
selector: 'control-content',
templateUrl: 'list-view.html',
styleUrls: ['list-view.css'],
encapsulation: ViewEncapsulation.None
})
export class ListviewController {
// Data source for listview, badge field is the class data for Badges
public dataSource: { [key: string]: Object }[] = (dataSource as any).listdata;
// Map fields
public fields: object = { groupBy: 'type' };
public onActionComplete() {
let list: HTMLElement = document.getElementById('lists').getElementsByClassName('e-list-group-item')[0] as HTMLElement;
list.style.display = 'none';
}
}
The Badge component is also available in our React, Vue, and JavaScript frameworks. Check out the Badge in different platforms from these links:
We do not sell the Angular Badge separately. It is only available for purchase as part of the Syncfusion team license. This contains over 1,800 components and frameworks, including the Angular Badge. The price of the team license starts at $395 per month for 5 developers, and includes support and updates until the subscription expires. In addition, we might offer discounts based on currently active promotions. Please contact our product specialists today to see if you qualify for any additional discounts.
You can find our Angular Badge demo, which demonstrates how to render and configure the Badge.
No, our 1,800+ components and frameworks for web, mobile, and desktop, including our Angular Badge, are not sold individually. They are only available as part of a team license. However, we have competitively priced the product, so it only costs a little bit more than what some other vendors charge for their Badge component alone. We have also found that, in our experience, our customers usually start off using one of our products and then expand to several products quickly, so we felt it was best to offer all 1,800+ components and frameworks for a subscription fee that starts at $395 per month for a team of 5 developers. Additionally, we might be able to offer discounts based on currently active promotions. Please contact our product specialists today to see if you qualify for any additional discounts.
No, this is a commercial product and requires a paid license. However, a free community license is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue, 5 or fewer developers, and 10 or fewer total employees.
A good place to start would be our comprehensive getting started documentation.
Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion is proud to hold the following industry awards.