Notification Badge
EXAMPLES 3
5
notification_badge(count=5)
99
notification_badge(count=99)
notification_badge(count=0)
USAGE
from djust_components.components.notification_badge import NotificationBadge
component = NotificationBadge(count=0,
max_count=99,
dot=False,
pulse=False,
size='md',
custom_class='',
kwargs)
html = component.render()
PARAMETERS 7
| Name | Type | Default |
|---|---|---|
count |
<class 'int'> |
0 |
max_count |
<class 'int'> |
99 |
dot |
<class 'bool'> |
False |
pulse |
<class 'bool'> |
False |
size |
<class 'str'> |
'md' |
custom_class |
<class 'str'> |
'' |
kwargs |
— |
— |