Skip to content

Commit d06b38a

Browse files
authored
Merge pull request #6326 from IgniteUI/sivanova/badge-docs
feat(badge): dot type section
2 parents f8a2e53 + 00813c1 commit d06b38a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

en/components/badge.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,15 @@ Then, just specify the icon name and family as follows:
162162
iframe-src="{environment:demosBaseUrl}/data-display/badge-icon/" >
163163
</code-view>
164164

165+
### Dot Badge
166+
167+
The `igx-badge` component can also render as a minimal dot indicator for notifications by enabling its `dot` property. Dot badges do not support content, but they can be outlined and can use any of the available dot types (e.g., primary, success, info, etc.).
168+
169+
<code-view style="height: 100px"
170+
data-demos-base-url="{environment:demosBaseUrl}"
171+
iframe-src="{environment:demosBaseUrl}/data-display/badge-dot-sample/" >
172+
</code-view>
173+
165174
### Badge in List
166175

167176
Let's extend the previous sample and create a list with contacts, similar to those in chat clients. In addition to the contact name, we want to display an avatar and the current state of the contact (online, offline or away). To achieve this, we're using the [`igx-badge`]({environment:angularApiUrl}/classes/igxbadgecomponent.html) and [`igx-avatar`]({environment:angularApiUrl}/classes/igxavatarcomponent.html) components. For a container, [`igx-list`]({environment:angularApiUrl}/classes/igxlistcomponent.html) is used.

0 commit comments

Comments
 (0)