Status Indicator
EXAMPLES 2
Service running
status_indicator(status='running', label='Service running')
Service stopped
status_indicator(status='stopped', label='Service stopped')
USAGE
from djust_components.components.status_indicator import StatusIndicator
component = StatusIndicator(status='offline',
label=None,
pulse=False,
size='md',
custom_class='',
kwargs)
html = component.render()
PARAMETERS 6
| Name | Type | Default |
|---|---|---|
status |
<class 'str'> |
'offline' |
label |
typing.Optional[str] |
None |
pulse |
<class 'bool'> |
False |
size |
<class 'str'> |
'md' |
custom_class |
<class 'str'> |
'' |
kwargs |
— |
— |