|
@@ -1,9 +1,9 @@
|
|
|
|
+from typing import Union
|
|
|
|
+
|
|
from ..dependencies import register_component
|
|
from ..dependencies import register_component
|
|
from ..element import Element
|
|
from ..element import Element
|
|
from ..ui import icon
|
|
from ..ui import icon
|
|
|
|
|
|
-# register_component("knob", __file__, "knob.js")
|
|
|
|
-
|
|
|
|
|
|
|
|
class Knob(Element):
|
|
class Knob(Element):
|
|
|
|
|
|
@@ -13,7 +13,7 @@ class Knob(Element):
|
|
center_color: str = "white",
|
|
center_color: str = "white",
|
|
track_color: str = "secondary",
|
|
track_color: str = "secondary",
|
|
size: str = "",
|
|
size: str = "",
|
|
- icon_name: str | None = None,
|
|
|
|
|
|
+ icon_name: Union[str, None] = None,
|
|
icon_color: str = "black",
|
|
icon_color: str = "black",
|
|
icon_size: str = "1rem",
|
|
icon_size: str = "1rem",
|
|
):
|
|
):
|