|
| 1 | +# AUTO GENERATED FILE - DO NOT EDIT |
| 2 | + |
| 3 | +from dash.development.base_component import Component, _explicitize_args |
| 4 | + |
| 5 | + |
| 6 | +class Lottie(Component): |
| 7 | + """A Lottie component. |
| 8 | +
|
| 9 | +
|
| 10 | +Keyword arguments: |
| 11 | +
|
| 12 | +- children (a list of or a singular dash component, string or number; optional): |
| 13 | + The children of this component. |
| 14 | +
|
| 15 | +- id (string; optional): |
| 16 | + The ID used to identify this component in Dash callbacks. |
| 17 | +
|
| 18 | +- ariaLabel (string; optional) |
| 19 | +
|
| 20 | +- ariaRole (string; optional) |
| 21 | +
|
| 22 | +- className (string; optional): |
| 23 | + The class of the component. |
| 24 | +
|
| 25 | +- direction (number; optional) |
| 26 | +
|
| 27 | +- height (string; optional): |
| 28 | + Pixel value for containers height. |
| 29 | +
|
| 30 | +- isClickToPauseDisabled (boolean; optional) |
| 31 | +
|
| 32 | +- isPaused (boolean; optional) |
| 33 | +
|
| 34 | +- isStopped (boolean; optional) |
| 35 | +
|
| 36 | +- options (dict; optional): |
| 37 | + Options passed to the Lottie animation (see |
| 38 | + https://www.npmjs.com/package/react-lottie for details). |
| 39 | +
|
| 40 | +- segments (list of numbers; optional) |
| 41 | +
|
| 42 | +- speed (number; optional) |
| 43 | +
|
| 44 | +- style (string; optional) |
| 45 | +
|
| 46 | +- title (string; optional) |
| 47 | +
|
| 48 | +- url (string; optional): |
| 49 | + If set, data will be downloaded from this url. |
| 50 | +
|
| 51 | +- width (string; optional): |
| 52 | + Pixel value for containers width.""" |
| 53 | + _children_props = [] |
| 54 | + _base_nodes = ['children'] |
| 55 | + _namespace = 'dash_extensions' |
| 56 | + _type = 'Lottie' |
| 57 | + @_explicitize_args |
| 58 | + def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UNDEFINED, options=Component.UNDEFINED, url=Component.UNDEFINED, width=Component.UNDEFINED, height=Component.UNDEFINED, isStopped=Component.UNDEFINED, isPaused=Component.UNDEFINED, speed=Component.UNDEFINED, segments=Component.UNDEFINED, direction=Component.UNDEFINED, ariaRole=Component.UNDEFINED, ariaLabel=Component.UNDEFINED, isClickToPauseDisabled=Component.UNDEFINED, title=Component.UNDEFINED, style=Component.UNDEFINED, **kwargs): |
| 59 | + self._prop_names = ['children', 'id', 'ariaLabel', 'ariaRole', 'className', 'direction', 'height', 'isClickToPauseDisabled', 'isPaused', 'isStopped', 'options', 'segments', 'speed', 'style', 'title', 'url', 'width'] |
| 60 | + self._valid_wildcard_attributes = [] |
| 61 | + self.available_properties = ['children', 'id', 'ariaLabel', 'ariaRole', 'className', 'direction', 'height', 'isClickToPauseDisabled', 'isPaused', 'isStopped', 'options', 'segments', 'speed', 'style', 'title', 'url', 'width'] |
| 62 | + self.available_wildcard_properties = [] |
| 63 | + _explicit_args = kwargs.pop('_explicit_args') |
| 64 | + _locals = locals() |
| 65 | + _locals.update(kwargs) # For wildcard attrs and excess named props |
| 66 | + args = {k: _locals[k] for k in _explicit_args if k != 'children'} |
| 67 | + |
| 68 | + super(Lottie, self).__init__(children=children, **args) |
0 commit comments