You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: projects/igniteui-angular/src/lib/badge/README.md
+19-1Lines changed: 19 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
# igx-badge
2
2
3
3
The **igx-badge** component is an absolutely positioned element that can be used in tandem with other components such as avatars, navigation menus, or anywhere else in an app where some active indication is required.
4
-
With the igx-badge you can display active count or an icon in several different predefined styles.
4
+
With the igx-badge you can display active count or an icon in several different predefined styles and sizes.
5
5
A walkthrough of how to get started can be found [here](https://www.infragistics.com/products/ignite-ui-angular/angular/components/badge.html)
6
6
7
7
# Usage
@@ -14,9 +14,12 @@ A walkthrough of how to get started can be found [here](https://www.infragistics
14
14
|:----------|:-------------:|:------|
15
15
|`id`| string | Unique identifier of the component. If not provided it will be automatically generated.|
16
16
|`type`| string | Set the type of the badge to either `primary`, `info`, `success`, `warning`, or `error`. This will change the background color of the badge according to the values set in the default theme. |
17
+
|`dot`| boolean | Set whether the badge is displayed as a minimal dot indicator without any content. Default is `false`. |
17
18
|`position`| string | Set the position of the badge relative to its parent container to either `top-right`, `top-left`, `bottom-right`, or `bottom-left`. |
18
19
|`value`| string | Set the value to be displayed inside the badge. |
19
20
|`icon`| string | Set an icon for the badge from the material icons set. Will not be displayed if `value` for the badge is already set. |
21
+
|`outlined`| boolean | Set whether the badge should have an outline. Default is `false`. |
22
+
|`shape`| string | Set the shape of the badge to either `rounded` or `square`. Default is `rounded`. |
20
23
21
24
# Examples
22
25
@@ -26,3 +29,18 @@ Using `igx-badge` with the `igx-avatar` component to show active status.
26
29
<igx-badgetype="info"value="8"></igx-badge>
27
30
</igx-avatar>
28
31
```
32
+
33
+
Using `igx-badge` as a dot indicator for notifications.
0 commit comments