Source code for dazzler.components.core._script
"""Autogenerated file: DO NOT EDIT!"""
import typing # noqa: F401
from dazzler.system import Component, Aspect, UNDEFINED # noqa: F401
[docs]class Script(Component):
"""
Load a script when mounted, with loaded status update and error handling.
"""
uri = Aspect(required=True, docstring="The script to load.")
loaded = Aspect()
timeout = Aspect(default=30000, docstring="(default=30000)")
error = Aspect()
class_name = Aspect(docstring="Class name automatically added by dazzler api with a prefix for the component library.ie: core component Container become ``dazzler-core-container``.When added on the component, the class names will be concatenated.") # noqa: E501
style = Aspect(docstring="Style object for the top level wrapper of the component.") # noqa: E501
[docs] def __init__(
self,
uri: str,
loaded: typing.Optional[bool] = UNDEFINED,
timeout: typing.Optional[typing.Union[float, int]] = 30000,
error: typing.Optional[str] = UNDEFINED,
class_name: typing.Optional[str] = UNDEFINED,
style: typing.Optional[typing.Dict] = UNDEFINED,
identity: str = None
):
"""
:param uri: The script to load.
:param loaded:
:param timeout: (default=30000)
:param error:
:param class_name: Class name automatically added by dazzler api
with a prefix for the component library. ie: core component
Container become ``dazzler-core-container``. When added on the
component, the class names will be concatenated.
:param style: Style object for the top level wrapper of the
component.
"""
Component.__init__(self, locals(), identity)