Truncated List
PREVIEW
Preview not available — component requires runtime dependencies or no examples defined.
USAGE
from djust_components.components.truncated_list import TruncatedList
component = TruncatedList(items=None,
max=3,
expanded=False,
toggle_event='toggle_list',
overflow_label='+{count} more',
custom_class='',
kwargs)
html = component.render()
PARAMETERS 7
| Name | Type | Default |
|---|---|---|
items |
typing.Optional[typing.List] |
None |
max |
<class 'int'> |
3 |
expanded |
<class 'bool'> |
False |
toggle_event |
<class 'str'> |
'toggle_list' |
overflow_label |
<class 'str'> |
'+{count} more' |
custom_class |
<class 'str'> |
'' |
kwargs |
— |
— |