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

Rating

python component Core UI 7 params
EXAMPLES 2
python
rating(value=4, max=5, name='rating1')
python
rating(value=2, max=5, name='rating2', readonly=True)
USAGE
python
from djust_components.components.rating import Rating

component = Rating(value=0,
    max_stars=5,
    readonly=False,
    event='set_rating',
    size='md',
    custom_class='',
    kwargs)
html = component.render()
PARAMETERS 7
NameTypeDefault
value <class 'float'> 0
max_stars <class 'int'> 5
readonly <class 'bool'> False
event <class 'str'> 'set_rating'
size <class 'str'> 'md'
custom_class <class 'str'> ''
kwargs