djust-theming | Demo Home Components | Gallery Storybook Editor Diff

Expandable Text

python component Data Display 8 params
PREVIEW
Preview not available — component requires runtime dependencies or no examples defined.
USAGE
python
from djust_components.components.expandable_text import ExpandableText

component = ExpandableText(text='',
    max_lines=3,
    expanded=False,
    toggle_event='toggle_expand',
    more_label='Read more',
    less_label='Show less',
    custom_class='',
    kwargs)
html = component.render()
PARAMETERS 8
NameTypeDefault
text <class 'str'> ''
max_lines <class 'int'> 3
expanded <class 'bool'> False
toggle_event <class 'str'> 'toggle_expand'
more_label <class 'str'> 'Read more'
less_label <class 'str'> 'Show less'
custom_class <class 'str'> ''
kwargs